joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c980
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x20]
xor ebx, ebx
push esi
cmp ebp, ebx
push edi
mov dword [esp + 0x10], ebx
je 0x40c998
mov dword [ebp], ebx
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x40cb28
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40cb28
cmp byte [eax], 0
je 0x40cb28
cmp ebp, ebx
je 0x40cb28
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40cb28
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push ebx
push ecx
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
push edx
call ebx
test eax, eax
jne 0x40cb13
mov eax, dword [esp + 0x1c]
push eax
call fcn.004205ed
mov esi, eax
add esp, 4
test esi, esi
je 0x40cb13
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
jne 0x40cb0a
mov eax, dword [esp + 0x20]
cmp eax, 1
jne 0x40ca93
mov ecx, dword [esp + 0x1c]
inc ecx
push ecx
call fcn.004205ed
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp], edi
je 0x40cb0a
mov edx, dword [esp + 0x1c]
xor eax, eax
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [esp + 0x10], 1
jmp 0x40cb0a
cmp eax, 2
jne 0x40cb0a
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea edx, [esp + 0x28]
push eax
push edx
push esi
mov byte [esp + 0x34], 0
mov byte [esp + 0x35], 0
call ebx
cmp eax, 2
mov dword [esp + 0x1c], eax
jbe 0x40cb0a
inc eax
push eax
call fcn.004205ed
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp], edi
je 0x40cb0a
mov eax, dword [esp + 0x1c]
lea ecx, [eax + 1]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp]
push eax
push ecx
push esi
call ebx
cmp eax, dword [esp + 0x1c]
ja 0x40cb02
test eax, eax
mov dword [esp + 0x10], 1
ja 0x40cb0a
mov dword [esp + 0x10], 0
push esi
call fcn.004203d7
add esp, 4
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40cb76
mov ebx, eax
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x40cb6c
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.004205ed
mov edx, eax
add esp, 4
test edx, edx
mov dword [ebp], edx
je 0x40cb6c
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x40cbf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x18]
xor esi, esi
cmp ecx, esi
mov dword [edi], eax
je 0x40cc6d
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x40cc6d
cmp byte [eax], 0
je 0x40cc6d
lea edx, [esp + 0x1c]
push edx
push 0x20019
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40cc6d
mov edx, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push edi
push ecx
push esi
push edx
push eax
mov dword [esp + 0x24], 4
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40cc62
cmp dword [esp + 0x18], 4
jne 0x40cc62
mov esi, 1
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
ret

Function at 0x40cc80
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
xor esi, esi
xor ebp, ebp
cmp ebx, esi
mov dword [esp + 0xc], ebp
je 0x40cc96
mov dword [ebx], esi
mov ecx, dword [esp + 0x14]
cmp ecx, esi
je 0x40cda1
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x40cda1
cmp byte [eax], 0
je 0x40cda1
lea edx, [esp + 0x18]
push edx
push 0x20019
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40cda1
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea ecx, [esp + 0x1c]
push esi
push ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x24], esi
push esi
mov esi, dword [esp + 0x30]
push esi
push edx
call edi
test eax, eax
jne 0x40cd8e
mov eax, dword [esp + 0x24]
push eax
call fcn.004205ed
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40cd8a
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push ebp
push edx
push 0
push esi
push eax
call edi
test eax, eax
jne 0x40cd81
cmp dword [esp + 0x18], 3
jne 0x40cd81
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004205ed
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x40cd81
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
xor eax, eax
mov esi, ebp
mov dword [edx], ecx
mov edi, dword [ebx]
mov edx, ecx
mov dword [esp + 0x10], 1
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 + 0x24]
mov edi, dword [ebx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
call fcn.004203d7
add esp, 4
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40cdb0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 4]
push esi
push edi
xor edi, edi
test ecx, ecx
je 0x40ce27
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40ce27
cmp byte [eax], 0
je 0x40ce27
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40ce27
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x10]
push edx
mov edx, dword [0x443b08]
push edx
push 0x20006
push edi
push edi
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40ce27
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
inc eax
push eax
mov eax, dword [esp + 0x18]
push esi
push 1
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40ce1c
mov edi, 1
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
ret

Function at 0x40ce30
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 4]
push esi
xor esi, esi
test ecx, ecx
je 0x40ce9b
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40ce9b
cmp byte [eax], 0
je 0x40ce9b
lea edx, [esp + 0xc]
push edx
lea edx, [esp + 0xc]
push edx
mov edx, dword [0x443b08]
push edx
push 0x20006
push esi
push esi
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40ce9b
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
lea eax, [esp + 0x14]
push 4
push eax
push 4
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40ce90
mov esi, 1
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
ret

Function at 0x40cea0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
xor esi, esi
test ecx, ecx
push edi
je 0x40cf1c
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40cf1c
cmp byte [eax], 0
je 0x40cf1c
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x40cf1c
mov ebx, dword [esp + 0x20]
cmp ebx, 0x3fac
ja 0x40cf1c
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x14]
push edx
mov edx, dword [0x443b08]
push edx
push 0x20006
push esi
push esi
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40cf1c
mov ecx, dword [esp + 0x10]
push ebx
push edi
push 3
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40cf11
mov esi, 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x40cf30
Capabilities:
Delete registry value

Disassembly:
mov ecx, dword [esp + 4]
push esi
xor esi, esi
test ecx, ecx
je 0x40cf81
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40cf81
cmp byte [eax], 0
je 0x40cf81
lea edx, [esp + 8]
push edx
push 0x20006
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40cf81
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 8]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
ret
Function at 0x40d330
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
push esi
xor esi, esi
push edi
test ecx, ecx
je 0x40d3a1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40d3a1
cmp byte [eax], 0
je 0x40d3a1
mov edi, dword [esp + 0x14]
test edi, edi
je 0x40d3a1
cmp byte [edi], 0
je 0x40d3a1
lea edx, [esp + 0x10]
push edx
push 0x20019
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d3a1
mov ecx, dword [esp + 0x10]
push eax
mov dword [esp + 0x10], eax
push eax
lea eax, [esp + 0x14]
push eax
push esi
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d396
mov eax, dword [esp + 0xc]
xor edx, edx
test eax, eax
setne dl
mov esi, edx
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
ret

Function at 0x40d410
Capabilities:
Query or enumerate registry key

Disassembly:
mov edx, dword [esp + 8]
push edi
xor eax, eax
mov ecx, 6
mov edi, edx
push eax
rep stosd dword es:[edi], eax
push eax
lea eax, [edx + 0x14]
push eax
lea ecx, [edx + 0x10]
lea eax, [edx + 0xc]
push ecx
push eax
lea ecx, [edx + 4]
push 0
push ecx
push edx
mov edx, dword [esp + 0x28]
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
neg eax
sbb eax, eax
pop edi
inc eax
ret

Function at 0x40d450
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x34
push esi
xor esi, esi
test eax, eax
je 0x40d536
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x40d536
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 4]
push ecx
push 0x20019
push esi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d536
mov ecx, dword [esp + 4]
push ebx
lea eax, [esp + 0x24]
push ebp
push eax
push ecx
call fcn.0040d410
add esp, 8
test eax, eax
je 0x40d522
mov edx, dword [esp + 0x2c]
lea ebx, [edx + 1]
push ebx
call fcn.004205ed
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40d522
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
push edi
mov dword [esp + 0x14], ebx
xor edi, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ebp
mov esi, 1
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push 0
push 0
lea eax, [esp + 0x20]
push 0
push eax
push ebp
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x40d518
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x20]
push edx
push eax
call dword [esp + 0x58]
add esp, 8
mov esi, eax
inc edi
mov dword [esp + 0x14], ebx
test esi, esi
jne 0x40d4db
push ebp
call fcn.004203d7
add esp, 4
pop edi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, esi
pop ebx
pop esi
add esp, 0x34
ret
mov eax, esi
pop esi
add esp, 0x34
ret
Function at 0x40d540
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x3c
push edi
xor edi, edi
test eax, eax
je 0x40d66d
cmp byte [eax], 0
je 0x40d66d
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x40d66d
mov edx, dword [esp + 0x44]
lea ecx, [esp + 4]
push ecx
push 0x20019
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d66d
mov ecx, dword [esp + 4]
lea eax, [esp + 0x28]
push eax
push ecx
call fcn.0040d410
add esp, 8
test eax, eax
je 0x40d662
mov edx, dword [esp + 0x38]
push ebx
push ebp
push esi
lea ebx, [edx + 1]
push ebx
call fcn.004205ed
mov esi, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x18], esi
lea ebp, [eax + 1]
push ebp
call fcn.004205ed
add esp, 8
mov dword [esp + 0x18], eax
test esi, esi
je 0x40d64c
test eax, eax
je 0x40d64c
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], eax
xor esi, esi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x30], ebp
mov edi, 1
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x30]
push eax
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x5c]
push 0
push eax
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x40d648
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [esp + 0x60]
add esp, 8
mov edi, eax
inc esi
mov dword [esp + 0x50], ebx
test edi, edi
mov dword [esp + 0x30], ebp
jne 0x40d5fd
mov esi, dword [esp + 0x14]
push esi
call fcn.004203d7
mov edx, dword [esp + 0x1c]
push edx
call fcn.004203d7
add esp, 8
pop esi
pop ebp
pop ebx
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
add esp, 0x3c
ret

Function at 0x40d7a0
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push eax
or edi, 0xffffffff
call fcn.0040d6c0
mov esi, eax
add esp, 4
test esi, esi
je 0x40d7ca
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
mov edi, eax
call fcn.004203d7
add esp, 4
mov eax, edi
pop edi
pop esi
ret

Function at 0x40d830
Capabilities:
Delete file

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
xor esi, esi
push edi
push esi
mov edi, 0x57
call ebp
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x40d890
cmp byte [ebx], 0
je 0x40d890
push ebx
call fcn.0040d800
add esp, 4
test eax, eax
je 0x40d889
mov eax, dword [esp + 0x18]
push eax
push ebx
call fcn.0040e3a0
add esp, 8
test eax, eax
je 0x40d890
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
neg esi
sbb esi, esi
neg esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x40d890
mov esi, 1
xor edi, edi
push edi
call ebp
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40d89d
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40d8b0
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x4320bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x354
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x10], 0x57
call fcn.0040af50
push ebx
mov dword [esp + 0x370], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esp + 0x374]
cmp edi, ebx
je 0x40da60
cmp byte [edi], 0
je 0x40da60
push edi
call fcn.0040d7d0
add esp, 4
test eax, eax
jne 0x40d925
mov esi, 1
mov dword [esp + 0x10], ebx
jmp 0x40da60
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x120]
push edi
push eax
call ebp
lea ecx, [esp + 0x120]
push 0x104
push ecx
call fcn.0040dd40
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 8
lea edx, [esp + 0x120]
push 0x43b3f8
push edx
call ebx
lea eax, [esp + 0x224]
lea ecx, [esp + 0x120]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x40da60
lea edx, [esp + 0x1c]
push edi
push edx
call ebp
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.0040dd40
add esp, 8
lea ecx, [esp + 0x250]
lea edx, [esp + 0x1c]
push ecx
push edx
call ebx
mov al, byte [esp + 0x224]
mov esi, 1
test al, 0x10
je 0x40d9e1
cmp byte [esp + 0x250], 0x2e
je 0x40da07
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.0040d8b0
add esp, 0xc
mov esi, eax
jmp 0x40da07
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.0040d830
mov esi, eax
add esp, 8
test esi, esi
jne 0x40da07
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x14]
push edx
call fcn.0040b700
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x224]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40da26
test esi, esi
jne 0x40d983
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
je 0x40da60
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x40da4a
mov dword [esp + 0x10], 0
jmp 0x40da60
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
call fcn.0040b700
xor esi, esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x378]
test eax, eax
je 0x40da7c
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov ecx, dword [esp + 0x37c]
test ecx, ecx
je 0x40da91
lea edx, [esp + 0x14]
push edx
call fcn.0040b680
lea ecx, [esp + 0x14]
mov dword [esp + 0x36c], 0xffffffff
call fcn.0040af80
mov ecx, dword [esp + 0x364]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x360
ret
Function at 0x40dac0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4320d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
push edi
xor edi, edi
test ebp, ebp
mov dword [esp + 0x10], 0x57
je 0x40dc5d
cmp byte [ebp], 0
je 0x40dc5d
push ebp
call fcn.0040d7d0
add esp, 4
test eax, eax
je 0x40db1b
mov edi, 1
mov dword [esp + 0x10], 0xb7
jmp 0x40dc5d
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 0xa
push esi
mov dword [esp + 0x18], esi
call fcn.004205ed
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40dc53
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.004205ed
mov esi, eax
add esp, 4
test esi, esi
je 0x40dc3e
mov byte [esi], 0
mov al, byte [ebx]
cmp al, 0x5c
mov edi, 1
mov ebp, ebx
jne 0x40db96
cmp byte [ebx + 1], 0x5c
jne 0x40db96
lea eax, [ebx + 2]
push 0x5c
push eax
call fcn.00420be0
mov ebp, eax
add esp, 8
inc ebp
mov ecx, ebp
sub ecx, ebx
inc ecx
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0
push 0x5c
push ebp
lea ecx, [esp + 0x24]
call fcn.0040efa0
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x18]
push edx
mov dword [esp + 0x38], 0
call fcn.0040f1d0
test eax, eax
je 0x40dc19
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esp + 0x3c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [esp + 0x14]
push ecx
push esi
call fcn.0040dd40
push esi
call fcn.0040d7d0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x40dc07
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [0x443b50]
push edx
push esi
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x18]
push eax
call fcn.0040f1d0
test eax, eax
jne 0x40dbc4
push esi
call fcn.004203d7
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], 0xffffffff
call fcn.0040f070
push ebx
call fcn.004203d7
add esp, 4
jmp 0x40dc5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esp + 0x14], eax
call fcn.004203d7
add esp, 4
jmp 0x40dc5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
test eax, eax
je 0x40dc6b
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x40dc80
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
xor esi, esi
test ebx, ebx
push edi
je 0x40dc8f
mov dword [ebx], esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40dcda
cmp byte [eax], 0
je 0x40dcda
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40dcda
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40dcd3
xor esi, esi
test ebx, ebx
je 0x40dcd3
mov dword [ebx], esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x40e0a0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x450
push ebx
push ebp
mov ebp, dword [esp + 0x45c]
push esi
push edi
push ebp
mov esi, 1
call fcn.0040d7d0
add esp, 4
test eax, eax
je 0x40e29e
mov edx, dword [esp + 0x468]
test edx, edx
je 0x40e29e
cmp byte [edx], 0
je 0x40e29e
mov ebx, dword [esp + 0x470]
test ebx, ebx
je 0x40e29e
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x35d]
mov byte [esp + 0x35c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x155]
mov byte [esp + 0x154], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
push ebp
lea eax, [esp + 0x364]
push 0x104
push eax
call fcn.0040df40
add esp, 0x10
test eax, eax
je 0x40e29e
push 0x43b3f8
push ebp
lea ecx, [esp + 0x15c]
push 0x104
push ecx
call fcn.0040df40
add esp, 0x10
test eax, eax
je 0x40e29e
lea edx, [esp + 0x14]
lea eax, [esp + 0x35c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, dword [esp + 0x474]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x40e1cb
test byte [esp + 0x14], 0x10
jne 0x40e1a0
push edi
lea ecx, [esp + 0x18]
push 0
push ecx
push ebp
call ebx
add esp, 0x10
mov esi, eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40e1b8
test esi, esi
jne 0x40e189
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
je 0x40e29e
mov eax, dword [esp + 0x46c]
test eax, eax
je 0x40e29e
lea edx, [esp + 0x14]
lea eax, [esp + 0x154]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x40e29e
test byte [esp + 0x14], 0x10
je 0x40e277
cmp byte [esp + 0x40], 0x2e
je 0x40e277
push edi
lea ecx, [esp + 0x18]
push 1
push ecx
push ebp
call ebx
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e277
lea edx, [esp + 0x258]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x258]
push 0x104
push eax
call fcn.0040dd40
add esp, 8
lea ecx, [esp + 0x40]
lea edx, [esp + 0x258]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x46c]
mov ecx, dword [esp + 0x468]
push edi
push ebx
push eax
lea edx, [esp + 0x264]
push ecx
push edx
call fcn.0040e0a0
add esp, 0x14
mov esi, eax
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40e293
test esi, esi
jne 0x40e1fa
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x450
ret