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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x3c
push edi
sub edi, edi
or eax, eax
je 0x40ba2d
cmp byte [eax], 0
je 0x40ba2d
mov ecx, dword [esp + 0x4c]
or 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
or 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
or 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
push esi
pop esi
push 1
pop edi
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]
or eax, eax
jne 0x40ba08
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [esp + 0x60]
add esp, 8
push eax
pop edi
inc esi
mov dword [esp + 0x50], ebx
or 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]
push edi
pop eax
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
sub ebx, ebx
push 0x20019
push edi
mov dword [esp + 0x24], ebx
mov dword [esi], edi
sub ebp, ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
call fcn.0040be50
push eax
push 0x80000002
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], pe_nt_image_headers32
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]
or 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]
or 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]
or ebx, ebx
je 0x40bfbc
add eax, 0x101
push eax
call fcn.0041b345
push edi
pop ecx
mov dword [esi], eax
push ecx
pop edx
mov esi, ebx
mov edi, eax
mov eax, dword [esp + 0x84]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push edx
pop ecx
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
push ecx
pop edx
push edi
pop esi
push ebp
pop edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push edx
pop ecx
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
push edx
pop edi
mov dword [esp + 0x18], eax
jmp 0x40bea7
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or 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
push ebx
pop eax
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
push eax
pop ebx
push esi
pop eax
and eax, 0xff
add eax, 0xa
test eax, eax
jle 0x40c7f3
mov edi, eax
call fcn.0041c176
dec edi
push eax
pop ebx
jne 0x40c7e9
push 0
call fcn.0041b800
add esp, 4
push eax
pop edi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
add eax, edi
add esi, eax
call fcn.0041c176
and esi, 0xff
add esi, 0xa
or 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
push eax
pop esi
add esp, 4
or esi, esi
je 0x40c9ca
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push esi
push eax
pop edi
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
pushal
popal
push 0x57
pop ebx
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
or 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
nop
nop
push 1
pop esi
sub ebx, ebx
test ebp, ebp
je 0x40ca8e
mov dword [ebp], ebx
push esi
pop eax
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
push edi
pop edi
push 1
pop eax
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]
nop
push 1
nop
pop esi
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
push eax
pop esi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x21c]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
or eax, eax
je 0x40cbb1
test esi, esi
jne 0x40cb33
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_FindClose]
or esi, esi
pop esi
je 0x40cbdb
push edi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
test eax, eax
je 0x40cbdb
pop edi
pop ebp
pushfd
xor eax, eax
inc eax
popfd
pop ebx
add esp, 0x34c
ret
pop edi
pop ebp
sub 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
sub edi, edi
test ebx, ebx
je 0x40cd8c
cmp byte [ebx], 0
je 0x40cd8c
push ebx
call fcn.0040c9d0
add esp, 4
or eax, eax
je 0x40cc48
pop edi
pop esi
pop ebp
nop
push 1
nop
pop eax
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]
push eax
pop esi
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
push ebp
pop ebx
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
push ebx
pop ecx
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
or 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
push eax
pop edi
add esp, 0xc
test edi, edi
jne 0x40cd28
mov edx, dword [0x431e88]
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
or 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]
or eax, eax
je 0x40cd9a
mov dword [eax], 0x57
mov ecx, dword [esp + 0x24]
push edi
pop eax
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
sub esi, esi
test ebx, ebx
push edi
je 0x40cdbf
mov dword [ebx], esi
mov eax, dword [esp + 0x10]
or eax, eax
je 0x40ce0a
cmp byte [eax], 0
je 0x40ce0a
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
push eax
pop edi
cmp edi, 0xffffffff
je 0x40ce0a
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push eax
pop esi
cmp esi, 0xffffffff
jne 0x40ce03
xor esi, esi
or ebx, ebx
je 0x40ce03
mov dword [ebx], esi
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
pop eax
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
pushfd
xor esi, esi
inc esi
popfd
call fcn.0040c9d0
add esp, 4
test eax, eax
je 0x40d1ee
mov edx, dword [esp + 0x468]
or edx, edx
je 0x40d1ee
cmp byte [edx], 0
je 0x40d1ee
mov ebx, dword [esp + 0x470]
or ebx, ebx
je 0x40d1ee
mov ecx, pe_nt_image_headers32
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
pushal
popal
push pe_nt_image_headers32
pop ecx
sub 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
or eax, eax
je 0x40d1ee
push 0x42b1bc
push ebp
lea ecx, [esp + 0x15c]
push 0x104
push ecx
call fcn.0040cf70
add esp, 0x10
or 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
push eax
pop esi
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]
or 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
or esi, esi
jne 0x40d14a
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_FindClose]
push esi
pop eax
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
nop
push pe_nt_image_headers32
nop
pop ecx
sub 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
sub 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
or eax, eax
jne 0x40d2d6
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop edi
pop esi
pushal
popal
push 1
pop eax
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
sub esi, esi
push edi
or 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]
push eax
pop edi
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
push esi
pop eax
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]
or 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
or esi, esi
push eax
pop edi
je 0x40d74d
push esi
call ebx
add edi, eax
add edi, 0xa
push edi
call fcn.0041b345
push eax
pop ebx
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
push 0x11
pop ecx
pushal
popal
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]
push eax
pop edi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
or 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
or eax, eax
pop ebx
je 0x40d82c
mov ecx, dword [esp]
mov dword [eax], ecx
mov eax, dword [esp + 4]
add esp, 0x5c
ret
Function at 0x40d9f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push esi
sub esi, esi
pushfd
xor eax, eax
inc eax
popfd
push edi
mov dword [esp + 0x14], str.IEGator
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], str.MiniSetup
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], str.Setup
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], str.Uninstall
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], str.Trickler
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], str.PdpSetup
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], 0x42a2e8
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0x42b4cc
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], str.Gator
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], str.OfferCompanion
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], str.PrecisionTime
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], str.DateManager
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0x42b494
mov dword [esp + 0x78], eax
lea edi, [esp + 0x14]
nop
push 0xd
nop
pop ebx
mov eax, dword [edi]
push eax
call ebp
add edi, 8
dec ebx
lea esi, [esi + eax + 2]
jne 0x40daa9
add esi, 0xa
push esi
call fcn.0041b345
push eax
pop ebx
add esp, 4
test ebx, ebx
je 0x40db25
push esi
pop ecx
xor eax, eax
push ecx
pop edx
push ebx
pop edi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov esi, ebx
and ecx, 3
mov dword [esp + 0x10], 0xd
rep stosb byte es:[edi], al
lea edi, [esp + 0x14]
mov eax, dword [esp + 0x84]
test eax, eax
jne 0x40dafe
mov eax, dword [edi + 4]
test eax, eax
je 0x40db17
mov eax, dword [edi]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push esi
call ebp
mov cl, byte [esp + 0x80]
add esi, eax
mov byte [esi], cl
inc esi
mov eax, dword [esp + 0x10]
add edi, 8
dec eax
mov dword [esp + 0x10], eax
jne 0x40daec
pop edi
pop esi
push ebx
pop eax
pop ebp
pop ebx
add esp, 0x6c
ret

Function at 0x40dbc0
Capabilities:
Check os version

Disassembly:
push edi
push edx
pop edx
push 0x25
pop ecx
xor eax, eax
mov edi, 0x432030
rep stosd dword es:[edi], eax
push 0x432030
mov dword [0x4320c4], 0
mov dword [0x432030], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov edx, dword [0x43203c]
mov eax, dword [0x432040]
and edx, 0xffff
sub eax, 0
mov dword [0x43203c], edx
pushfd
xor ecx, ecx
inc ecx
popfd
pop edi
je 0x40dcc4
dec eax
je 0x40dc8d
dec eax
je 0x40dc2b
mov dword [0x4320c4], 0
mov dword [0x4320c8], ecx
ret
mov eax, dword [0x432034]
cmp eax, 4
jae 0x40dc46
mov dword [0x4320c4], 4
mov dword [0x4320c8], ecx
ret
jne 0x40dc59
mov dword [0x4320c4], 5
mov dword [0x4320c8], ecx
ret
cmp eax, 5
jne 0x40dcca
mov eax, dword [0x432038]
or eax, eax
jne 0x40dc78
mov dword [0x4320c4], 6
mov dword [0x4320c8], ecx
ret
cmp eax, ecx
jne 0x40dcca
mov dword [0x4320c4], 7
mov dword [0x4320c8], ecx
ret
mov eax, dword [0x432034]
cmp eax, 4
ja 0x40dcb3
jne 0x40dca2
mov eax, dword [0x432038]
or eax, eax
ja 0x40dcb3
mov dword [0x4320c4], 2
mov dword [0x4320c8], ecx
ret
mov dword [0x4320c4], 3
mov dword [0x4320c8], ecx
ret
mov dword [0x4320c4], ecx
mov dword [0x4320c8], ecx
ret
Function at 0x40ddd0
Capabilities:
Delete file
Move file

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
or esi, esi
je 0x40de24
cmp byte [esi], 0
je 0x40de24
mov eax, dword [0x4320d0]
test eax, eax
jne 0x40ddff
push 0x4320d0
mov dword [0x4320d0], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov eax, dword [0x4320e0]
dec eax
je 0x40de18
dec eax
jne 0x40de24
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
pop edi
pop esi
ret
push esi
call fcn.0040de30
add esp, 4
pop edi
pop esi
ret
mov eax, edi
pop edi
pop esi
ret
Function at 0x40e210
Capabilities:
Get disk size

Disassembly:
sub esp, 0x14
mov eax, dword [0x42b638]
mov cl, byte [esp + 0x18]
push ebx
push esi
mov dword [esp + 8], eax
lea edx, [esp + 0x18]
push edi
mov byte [esp + 0xc], cl
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x18]
sub esi, esi
push edx
push eax
or edi, 0xffffffff
or ebx, 0xffffffff
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceA]
or eax, eax
je 0x40e287
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push esi
push ecx
push esi
push edx
call fcn.0041c310
mov ecx, dword [esp + 0x18]
push esi
push ecx
push edx
push eax
call fcn.0041c310
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov eax, edi
pop edi
mov edx, ebx
pop esi
pop ebx
add esp, 0x14
ret