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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x3c
push edi
xor edi, edi
test eax, eax
je 0x40b5fd
cmp byte [eax], 0
je 0x40b5fd
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x40b5fd
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 0x40b5fd
mov ecx, dword [esp + 4]
lea eax, [esp + 0x28]
push eax
push ecx
call fcn.0040b3a0
add esp, 8
test eax, eax
je 0x40b5f2
mov edx, dword [esp + 0x38]
push ebx
push ebp
push esi
lea ebx, [edx + 1]
push ebx
call fcn.0041a915
mov esi, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x18], esi
lea ebp, [eax + 1]
push ebp
call fcn.0041a915
add esp, 8
mov dword [esp + 0x18], eax
test esi, esi
je 0x40b5dc
test eax, eax
je 0x40b5dc
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 0x40b5d8
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 0x40b58d
mov esi, dword [esp + 0x14]
push esi
call fcn.0041a842
mov edx, dword [esp + 0x1c]
push edx
call fcn.0041a842
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 0x40b6f0
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.0040b6e0
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b8d0
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 0x40b8b1
mov al, byte [esp + 0x84]
test al, al
jne 0x40b7ed
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 0x40b737
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 0x40b7da
mov eax, dword [esp + 0x30]
cmp eax, 1
je 0x40b7d8
cmp eax, 2
jne 0x40b7da
xor bl, bl
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x40b737
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
lea edx, [ecx + edi + 1]
cmp edx, eax
jb 0x40b865
mov ebx, dword [esi]
test ebx, ebx
je 0x40b84c
add eax, 0x101
push eax
call fcn.0041a915
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.0041a842
add esp, 8
jmp 0x40b865
push 0x101
call fcn.0041a915
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 0x40b737
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
je 0x40b8c4
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 0x40bff0
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 [0x433205]
add esi, ebx
add esi, edi
test al, al
jne 0x40c062
push esi
call fcn.0041b739
add esp, 4
mov byte [0x433205], 1
call fcn.0041b746
mov dword [esp + 0x3c], eax
call fcn.0041b746
mov ebx, eax
mov eax, esi
and eax, 0xff
add eax, 0xa
test eax, eax
jle 0x40c093
mov edi, eax
call fcn.0041b746
dec edi
mov ebx, eax
jne 0x40c089
push 0
call fcn.0041ad4b
add esp, 4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, edi
add esi, eax
call fcn.0041b746
and esi, 0xff
add esi, 0xa
test esi, esi
jle 0x40c0c3
call fcn.0041b746
dec esi
jne 0x40c0bb
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 0x40c240
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push eax
or edi, 0xffffffff
call fcn.0040c1c0
mov esi, eax
add esp, 4
test esi, esi
je 0x40c26a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
mov edi, eax
call fcn.0041a842
add esp, 4
mov eax, edi
pop edi
pop esi
ret

Function at 0x40c2d0
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 0x40c327
cmp byte [edi], 0
je 0x40c327
push edi
call fcn.0040c2a0
add esp, 4
test eax, eax
je 0x40c320
push ebp
push edi
call fcn.0040cbc0
add esp, 8
test eax, eax
je 0x40c327
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 0x40c327
mov esi, 1
xor ebx, ebx
test ebp, ebp
je 0x40c32e
mov dword [ebp], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40c340
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 0x40c47b
push edi
call fcn.0040c270
add esp, 4
test eax, eax
jne 0x40c374
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.0040c710
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 8
lea edx, [esp + 0x114]
push 0x42b0ec
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 0x40c461
push esi
lea edx, [esp + 0x14]
push edi
push edx
call ebp
lea eax, [esp + 0x14]
push 0x104
push eax
call fcn.0040c710
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 0x40c425
cmp byte [esp + 0x248], 0x2e
je 0x40c436
lea eax, [esp + 0x14]
push eax
call fcn.0040c340
add esp, 4
jmp 0x40c434
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.0040c2d0
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 0x40c451
test esi, esi
jne 0x40c3d3
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
pop esi
je 0x40c47b
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x40c47b
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 0x40c490
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x425ca8
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 0x40c62c
cmp byte [ebx], 0
je 0x40c62c
push ebx
call fcn.0040c270
add esp, 4
test eax, eax
je 0x40c4e8
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.0041a915
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40c61a
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.0041a915
mov esi, eax
add esp, 4
test esi, esi
je 0x40c5ff
mov byte [esi], 0
mov al, byte [ebp]
cmp al, 0x5c
mov edi, 1
mov ebx, ebp
jne 0x40c55c
cmp byte [ebp + 1], 0x5c
jne 0x40c55c
lea eax, [ebp + 2]
push 0x5c
push eax
call fcn.0041b0a0
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.0040ecb0
lea edx, [esp + 0x34]
lea ecx, [esp + 0x14]
push edx
mov dword [esp + 0x30], 0
call fcn.0040ee20
test eax, eax
je 0x40c5da
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.0040c710
push esi
call fcn.0040c270
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x40c5c8
mov edx, dword [0x433248]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test ebx, ebx
mov edi, eax
je 0x40c5c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
lea eax, [esp + 0x34]
lea ecx, [esp + 0x14]
push eax
call fcn.0040ee20
test eax, eax
jne 0x40c586
push esi
call fcn.0041a842
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0040ed10
push ebp
call fcn.0041a842
add esp, 4
jmp 0x40c63a
mov esi, dword [esp + 0x38]
test esi, esi
je 0x40c60f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push ebp
call fcn.0041a842
add esp, 4
jmp 0x40c63a
mov esi, dword [esp + 0x38]
test esi, esi
je 0x40c63a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x40c63a
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40c63a
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 0x40c650
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
xor esi, esi
test ebx, ebx
push edi
je 0x40c65f
mov dword [ebx], esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40c6aa
cmp byte [eax], 0
je 0x40c6aa
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 0x40c6aa
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c6a3
xor esi, esi
test ebx, ebx
je 0x40c6a3
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 0x40c890
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.0040c270
add esp, 4
test eax, eax
je 0x40ca8e
mov edx, dword [esp + 0x468]
test edx, edx
je 0x40ca8e
cmp byte [edx], 0
je 0x40ca8e
mov ebx, dword [esp + 0x470]
test ebx, ebx
je 0x40ca8e
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.0040c810
add esp, 0x10
test eax, eax
je 0x40ca8e
push 0x42b0ec
push ebp
lea ecx, [esp + 0x15c]
push 0x104
push ecx
call fcn.0040c810
add esp, 0x10
test eax, eax
je 0x40ca8e
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 0x40c9bb
test byte [esp + 0x14], 0x10
jne 0x40c990
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 0x40c9a8
test esi, esi
jne 0x40c979
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
je 0x40ca8e
mov eax, dword [esp + 0x46c]
test eax, eax
je 0x40ca8e
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 0x40ca8e
test byte [esp + 0x14], 0x10
je 0x40ca67
cmp byte [esp + 0x40], 0x2e
je 0x40ca67
push edi
lea ecx, [esp + 0x18]
push 1
push ecx
push ebp
call ebx
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ca67
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.0040c710
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.0040c890
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 0x40ca83
test esi, esi
jne 0x40c9ea
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 0x40cad0
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.0040c270
add esp, 4
test eax, eax
jne 0x40cb07
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.0040c710
add esp, 8
lea ecx, [esp + 0xc]
push 0x42b0ec
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 0x40cb70
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 0x40cb8f
cmp byte [esp + 0x13c], 0x2e
je 0x40cb92
inc dword [ebp]
jmp 0x40cb92
inc dword [ebp + 4]
lea ecx, [esp + 0x110]
push ecx
push esi
call edi
test eax, eax
jne 0x40cb76
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x244
ret

Function at 0x40cbc0
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 0x40cbfe
cmp byte [ebx], 0
je 0x40cbfe
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 0x40cbfe
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 0x40cc0c
mov dword [eax], 0x57
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40cf90
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 0x40cfb1
mov dword [eax], 0
push ebx
push ebp
mov ebp, dword [esp + 0x68]
push esi
push edi
push ebp
call fcn.0040c2a0
add esp, 4
test eax, eax
je 0x40d0ba
mov esi, dword [esp + 0x74]
test esi, esi
je 0x40cfd9
cmp byte [esi], 0
jne 0x40cfd9
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
call ebx
test esi, esi
mov edi, eax
je 0x40cfed
push esi
call ebx
add edi, eax
add edi, 0xa
push edi
call fcn.0041a915
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40d0ba
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test esi, esi
je 0x40d021
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x429bb4
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 0x40d089
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 0x40d0aa
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
jmp 0x40d0b1
mov edx, dword [esp + 0x18]
push edx
call esi
push ebx
call fcn.0041a842
add esp, 4
mov eax, dword [esp + 0x78]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x40d0cc
mov ecx, dword [esp]
mov dword [eax], ecx
mov eax, dword [esp + 4]
add esp, 0x5c
ret
Function at 0x40d290
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
xor esi, esi
mov eax, 1
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], 0x42a214
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0x42b4e4
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], 0x42b4ac
mov dword [esp + 0x78], eax
lea edi, [esp + 0x14]
mov ebx, 0xd
mov eax, dword [edi]
push eax
call ebp
add edi, 8
dec ebx
lea esi, [esi + eax + 2]
jne 0x40d349
add esi, 0xa
push esi
call fcn.0041a915
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40d3c5
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
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 0x40d39e
mov eax, dword [edi + 4]
test eax, eax
je 0x40d3b7
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 0x40d38c
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x6c
ret

Function at 0x40d460
Capabilities:
Check os version

Disassembly:
push edi
mov ecx, 0x25
xor eax, eax
mov edi, 0x4333f0
rep stosd dword es:[edi], eax
push 0x4333f0
mov dword [0x433484], 0
mov dword [0x4333f0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edx, dword [0x4333fc]
mov eax, dword [0x433400]
and edx, 0xffff
sub eax, 0
mov dword [0x4333fc], edx
mov ecx, 1
pop edi
je 0x40d564
dec eax
je 0x40d52d
dec eax
je 0x40d4cb
mov dword [0x433484], 0
mov dword [0x433488], ecx
ret
mov eax, dword [0x4333f4]
cmp eax, 4
jae 0x40d4e6
mov dword [0x433484], 4
mov dword [0x433488], ecx
ret
jne 0x40d4f9
mov dword [0x433484], 5
mov dword [0x433488], ecx
ret
cmp eax, 5
jne 0x40d56a
mov eax, dword [0x4333f8]
test eax, eax
jne 0x40d518
mov dword [0x433484], 6
mov dword [0x433488], ecx
ret
cmp eax, ecx
jne 0x40d56a
mov dword [0x433484], 7
mov dword [0x433488], ecx
ret
mov eax, dword [0x4333f4]
cmp eax, 4
ja 0x40d553
jne 0x40d542
mov eax, dword [0x4333f8]
test eax, eax
ja 0x40d553
mov dword [0x433484], 2
mov dword [0x433488], ecx
ret
mov dword [0x433484], 3
mov dword [0x433488], ecx
ret
mov dword [0x433484], ecx
mov dword [0x433488], ecx
ret
Function at 0x40d670
Capabilities:
Delete file
Move file

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
test esi, esi
je 0x40d6c4
cmp byte [esi], 0
je 0x40d6c4
mov eax, dword [0x433490]
test eax, eax
jne 0x40d69f
push 0x433490
mov dword [0x433490], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [0x4334a0]
dec eax
je 0x40d6b8
dec eax
jne 0x40d6c4
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop edi
pop esi
ret
push esi
call fcn.0040d6d0
add esp, 4
pop edi
pop esi
ret
mov eax, edi
pop edi
pop esi
ret
Function at 0x40dab0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x14
mov eax, dword [0x42b650]
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]
xor 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]
test eax, eax
je 0x40db27
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push esi
push ecx
push esi
push edx
call fcn.0041b8e0
mov ecx, dword [esp + 0x18]
push esi
push ecx
push edx
push eax
call fcn.0041b8e0
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