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

Disassembly:
mov ecx, dword [esp + 4]
push esi
xor esi, esi
push edi
test ecx, ecx
je 0x40b761
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40b761
cmp byte [eax], 0
je 0x40b761
mov edi, dword [esp + 0x14]
test edi, edi
je 0x40b761
cmp byte [edi], 0
je 0x40b761
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 0x40b761
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 0x40b756
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 0x40b7d0
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 0x40b810
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x34
push esi
xor esi, esi
test eax, eax
je 0x40b8f6
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x40b8f6
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 0x40b8f6
mov ecx, dword [esp + 4]
push ebx
lea eax, [esp + 0x24]
push ebp
push eax
push ecx
call fcn.0040b7d0
add esp, 8
test eax, eax
je 0x40b8e2
mov edx, dword [esp + 0x2c]
lea ebx, [edx + 1]
push ebx
call fcn.0041b345
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40b8e2
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 0x40b8d8
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 0x40b89b
push ebp
call fcn.0041b272
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 0x40b900
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x3c
push edi
xor edi, edi
test eax, eax
je 0x40ba2d
cmp byte [eax], 0
je 0x40ba2d
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x40ba2d
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 0x40ba2d
mov ecx, dword [esp + 4]
lea eax, [esp + 0x28]
push eax
push ecx
call fcn.0040b7d0
add esp, 8
test eax, eax
je 0x40ba22
mov edx, dword [esp + 0x38]
push ebx
push ebp
push esi
lea ebx, [edx + 1]
push ebx
call fcn.0041b345
mov esi, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x18], esi
lea ebp, [eax + 1]
push ebp
call fcn.0041b345
add esp, 8
mov dword [esp + 0x18], eax
test esi, esi
je 0x40ba0c
test eax, eax
je 0x40ba0c
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 0x40ba08
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 0x40b9bd
mov esi, dword [esp + 0x14]
push esi
call fcn.0041b272
mov edx, dword [esp + 0x1c]
push edx
call fcn.0041b272
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 0x40be60
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x7c]
lea eax, [esp + 0x1c]
push edi
xor edi, edi
push eax
xor ebx, ebx
push 0x20019
push edi
mov dword [esp + 0x24], ebx
mov dword [esi], edi
xor ebp, ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
call fcn.0040be50
push eax
push reloc.WSOCK32.DLL_bind
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
test eax, eax
jne 0x40c040
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x1c]
mov eax, ecx
inc ecx
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x34]
push ecx
push 0
push 0
push 0
lea ecx, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x34]
push ecx
push eax
push edx
mov dword [esp + 0x3c], 0x40
call dword [sym.imp.ADVAPI32.DLL_RegEnumKeyExA]
test eax, eax
jne 0x40c021
mov al, byte [esp + 0x84]
test al, al
jne 0x40bf5d
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x28]
push eax
push 0x20019
lea ecx, [esp + 0x44]
push 0
push ecx
push edx
mov bl, 1
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
test eax, eax
jne 0x40bea7
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x30]
push eax
push ecx
push 0
push 0
push str.RegStatus
push edx
mov dword [esp + 0x44], 4
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
test eax, eax
jne 0x40bf4a
mov eax, dword [esp + 0x30]
cmp eax, 1
je 0x40bf48
cmp eax, 2
jne 0x40bf4a
xor bl, bl
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
test bl, bl
jne 0x40bea7
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
lea edx, [ecx + edi + 1]
cmp edx, eax
jb 0x40bfd5
mov ebx, dword [esi]
test ebx, ebx
je 0x40bfbc
add eax, 0x101
push eax
call fcn.0041b345
mov ecx, edi
mov dword [esi], eax
mov edx, ecx
mov esi, ebx
mov edi, eax
mov eax, dword [esp + 0x84]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x18]
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
mov ebp, dword [eax]
add esi, 0x100
add ebp, edx
mov dword [esp + 0x18], esi
call fcn.0041b272
add esp, 8
jmp 0x40bfd5
push 0x101
call fcn.0041b345
add esp, 4
mov dword [esi], eax
mov dword [esp + 0x10], 0x100
mov ebp, eax
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x80]
lea ebp, [eax + ebp + 1]
lea edx, [ecx + eax + 1]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], edx
inc eax
mov edi, edx
mov dword [esp + 0x18], eax
jmp 0x40bea7
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
test ebp, ebp
je 0x40c034
mov byte [ebp], 0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x6c
ret
Function at 0x40c750
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
push edi
call esi
mov ebp, dword [esp + 0x3c]
mov byte [ebp + 0xf], al
shr eax, 8
mov byte [ebp + 0xe], al
shr eax, 8
mov byte [ebp + 0xd], al
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatus]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
shr edi, 0xc
lea edx, [esp + 0x10]
shl edi, 0xc
shr ecx, 0xc
push edx
add edi, ecx
call dword [sym.imp.USER32.DLL_GetCursorPos]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
shl ebx, 0xa
add ebx, eax
call esi
mov esi, eax
mov al, byte [0x431e45]
add esi, ebx
add esi, edi
test al, al
jne 0x40c7c2
push esi
call fcn.0041c169
add esp, 4
mov byte [0x431e45], 1
call fcn.0041c176
mov dword [esp + 0x3c], eax
call fcn.0041c176
mov ebx, eax
mov eax, esi
and eax, 0xff
add eax, 0xa
test eax, eax
jle 0x40c7f3
mov edi, eax
call fcn.0041c176
dec edi
mov ebx, eax
jne 0x40c7e9
push 0
call fcn.0041b800
add esp, 4
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
add eax, edi
add esi, eax
call fcn.0041c176
and esi, 0xff
add esi, 0xa
test esi, esi
jle 0x40c823
call fcn.0041c176
dec esi
jne 0x40c81b
mov cl, byte [esp + 0x3c]
or al, 0x80
pop edi
mov byte [ebp + 0xc], cl
mov byte [ebp + 0xb], bl
mov byte [ebp + 0xa], al
pop esi
pop ebp
pop ebx
add esp, 0x28
ret

Function at 0x40c9a0
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push eax
or edi, 0xffffffff
call fcn.0040c920
mov esi, eax
add esp, 4
test esi, esi
je 0x40c9ca
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push esi
mov edi, eax
call fcn.0041b272
add esp, 4
mov eax, edi
pop edi
pop esi
ret

Function at 0x40ca30
Capabilities:
Delete file

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
mov ebx, 0x57
test edi, edi
je 0x40ca87
cmp byte [edi], 0
je 0x40ca87
push edi
call fcn.0040ca00
add esp, 4
test eax, eax
je 0x40ca80
push ebp
push edi
call fcn.0040d320
add esp, 8
test eax, eax
je 0x40ca87
push edi
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 ebx, eax
jmp 0x40ca87
mov esi, 1
xor ebx, ebx
test ebp, ebp
je 0x40ca8e
mov dword [ebp], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40caa0
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x34c
push ebx
push ebp
push edi
mov edi, dword [esp + 0x35c]
test edi, edi
je 0x40cbdb
push edi
call fcn.0040c9d0
add esp, 4
test eax, eax
jne 0x40cad4
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x34c
ret
mov ebp, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [esp + 0x114]
push edi
push eax
call ebp
lea ecx, [esp + 0x114]
push 0x104
push ecx
call fcn.0040ce70
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcatA]
add esp, 8
lea edx, [esp + 0x114]
push 0x42b1bc
push edx
call ebx
lea eax, [esp + 0x218]
lea ecx, [esp + 0x114]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x40cbc1
push esi
lea edx, [esp + 0x14]
push edi
push edx
call ebp
lea eax, [esp + 0x14]
push 0x104
push eax
call fcn.0040ce70
add esp, 8
lea ecx, [esp + 0x248]
lea edx, [esp + 0x14]
push ecx
push edx
call ebx
mov al, byte [esp + 0x21c]
mov esi, 1
test al, 0x10
je 0x40cb85
cmp byte [esp + 0x248], 0x2e
je 0x40cb96
lea eax, [esp + 0x14]
push eax
call fcn.0040caa0
add esp, 4
jmp 0x40cb94
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.0040ca30
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x21c]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
je 0x40cbb1
test esi, esi
jne 0x40cb33
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_FindClose]
test esi, esi
pop esi
je 0x40cbdb
push edi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
test eax, eax
je 0x40cbdb
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x34c
ret
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34c
ret
Function at 0x40cbf0
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4256f8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x28]
push ebp
push esi
push edi
xor edi, edi
test ebx, ebx
je 0x40cd8c
cmp byte [ebx], 0
je 0x40cd8c
push ebx
call fcn.0040c9d0
add esp, 4
test eax, eax
je 0x40cc48
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov esi, eax
add esi, 0xa
push esi
mov dword [esp + 0x14], esi
call fcn.0041b345
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40cd7a
push ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push esi
call fcn.0041b345
mov esi, eax
add esp, 4
test esi, esi
je 0x40cd5f
mov byte [esi], 0
mov al, byte [ebp]
cmp al, 0x5c
mov edi, 1
mov ebx, ebp
jne 0x40ccbc
cmp byte [ebp + 1], 0x5c
jne 0x40ccbc
lea eax, [ebp + 2]
push 0x5c
push eax
call fcn.0041bb90
mov ebx, eax
add esp, 8
inc ebx
mov ecx, ebx
sub ecx, ebp
inc ecx
push ecx
push ebp
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpynA]
push 0x5c
push ebx
lea ecx, [esp + 0x1c]
call fcn.0040f3d0
lea edx, [esp + 0x34]
lea ecx, [esp + 0x14]
push edx
mov dword [esp + 0x30], 0
call fcn.0040f540
test eax, eax
je 0x40cd3a
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
mov ecx, dword [esp + 0x10]
push ecx
push esi
call fcn.0040ce70
push esi
call fcn.0040c9d0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x40cd28
mov edx, dword [0x431e88]
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test ebx, ebx
mov edi, eax
je 0x40cd28
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebx], eax
lea eax, [esp + 0x34]
lea ecx, [esp + 0x14]
push eax
call fcn.0040f540
test eax, eax
jne 0x40cce6
push esi
call fcn.0041b272
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0040f430
push ebp
call fcn.0041b272
add esp, 4
jmp 0x40cd9a
mov esi, dword [esp + 0x38]
test esi, esi
je 0x40cd6f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi], eax
push ebp
call fcn.0041b272
add esp, 4
jmp 0x40cd9a
mov esi, dword [esp + 0x38]
test esi, esi
je 0x40cd9a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi], eax
jmp 0x40cd9a
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40cd9a
mov dword [eax], 0x57
mov ecx, dword [esp + 0x24]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x40cdb0
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
xor esi, esi
test ebx, ebx
push edi
je 0x40cdbf
mov dword [ebx], esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40ce0a
cmp byte [eax], 0
je 0x40ce0a
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 0x40ce0a
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ce03
xor esi, esi
test ebx, ebx
je 0x40ce03
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 0x40cff0
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.0040c9d0
add esp, 4
test eax, eax
je 0x40d1ee
mov edx, dword [esp + 0x468]
test edx, edx
je 0x40d1ee
cmp byte [edx], 0
je 0x40d1ee
mov ebx, dword [esp + 0x470]
test ebx, ebx
je 0x40d1ee
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.0040cf70
add esp, 0x10
test eax, eax
je 0x40d1ee
push 0x42b1bc
push ebp
lea ecx, [esp + 0x15c]
push 0x104
push ecx
call fcn.0040cf70
add esp, 0x10
test eax, eax
je 0x40d1ee
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 0x40d11b
test byte [esp + 0x14], 0x10
jne 0x40d0f0
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 0x40d108
test esi, esi
jne 0x40d0d9
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_FindClose]
test esi, esi
je 0x40d1ee
mov eax, dword [esp + 0x46c]
test eax, eax
je 0x40d1ee
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 0x40d1ee
test byte [esp + 0x14], 0x10
je 0x40d1c7
cmp byte [esp + 0x40], 0x2e
je 0x40d1c7
push edi
lea ecx, [esp + 0x18]
push 1
push ecx
push ebp
call ebx
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d1c7
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.0040ce70
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.0040cff0
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 0x40d1e3
test esi, esi
jne 0x40d14a
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
Function at 0x40d230
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x244
xor eax, eax
push ebp
mov ebp, dword [esp + 0x250]
mov ecx, ebp
push esi
mov esi, dword [esp + 0x250]
push edi
mov dword [ecx], eax
push esi
mov dword [ecx + 4], eax
call fcn.0040c9d0
add esp, 4
test eax, eax
jne 0x40d267
pop edi
pop esi
pop ebp
add esp, 0x244
ret
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0xc]
push esi
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.0040ce70
add esp, 8
lea ecx, [esp + 0xc]
push 0x42b1bc
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea edx, [esp + 0x110]
lea eax, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d2d0
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x244
ret
mov edi, dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test byte [esp + 0x110], 0x10
je 0x40d2ef
cmp byte [esp + 0x13c], 0x2e
je 0x40d2f2
inc dword [ebp]
jmp 0x40d2f2
inc dword [ebp + 4]
lea ecx, [esp + 0x110]
push ecx
push esi
call edi
test eax, eax
jne 0x40d2d6
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x244
ret

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

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
xor esi, esi
push edi
test ebx, ebx
je 0x40d35e
cmp byte [ebx], 0
je 0x40d35e
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
call ebp
cmp edi, 0xffffffff
je 0x40d35e
and edi, 0xfffffffe
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
mov esi, eax
neg esi
sbb esi, esi
neg esi
call ebp
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40d36c
mov dword [eax], 0x57
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40d6f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x5c
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], 0
test eax, eax
mov dword [esp], 0x57
je 0x40d711
mov dword [eax], 0
push ebx
push ebp
mov ebp, dword [esp + 0x68]
push esi
push edi
push ebp
call fcn.0040ca00
add esp, 4
test eax, eax
je 0x40d81a
mov esi, dword [esp + 0x74]
test esi, esi
je 0x40d739
cmp byte [esi], 0
jne 0x40d739
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push ebp
call ebx
test esi, esi
mov edi, eax
je 0x40d74d
push esi
call ebx
add edi, eax
add edi, 0xa
push edi
call fcn.0041b345
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40d81a
push ebp
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
test esi, esi
je 0x40d781
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0x429c84
push ebx
call edi
push esi
push ebx
call edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x28]
mov esi, dword [sym.imp.KERNEL32.DLL_SetLastError]
rep stosd dword es:[edi], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], 0x44
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push eax
mov dword [esp + 0x28], eax
call esi
lea ecx, [esp + 0x18]
lea edx, [esp + 0x28]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov edi, eax
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test edi, edi
mov dword [esp + 0x10], eax
je 0x40d7e9
mov dword [esp + 0x10], 0
push 0
call esi
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
call esi
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x40d80a
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
jmp 0x40d811
mov edx, dword [esp + 0x18]
push edx
call esi
push ebx
call fcn.0041b272
add esp, 4
mov eax, dword [esp + 0x78]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x40d82c
mov ecx, dword [esp]
mov dword [eax], ecx
mov eax, dword [esp + 4]
add esp, 0x5c
ret