joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409222
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
push edi
xor ebx, ebx
xor edi, edi
lea eax, [esi + 0x20]
cmp dword [eax], ebx
je 0x40923f
inc edi
add eax, 8
cmp edi, 0x10
jl 0x409232
cmp edi, 0x10
jne 0x40924b
xor eax, eax
jmp 0x4092eb
cmp byte [esi + 0x18], 1
jne 0x4092c2
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
lea eax, [esi + edi*8 + 0x1c]
push ebx
push 0x438
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp dword [esi + 8], ebx
jne 0x40929e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi], eax
je 0x40929e
push str.VirtualAllocEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
cmp eax, ebx
jne 0x4092aa
mov eax, 0x427699
mov ecx, dword [ebp + 0xc]
push 4
push 0x1000
push dword [ebp + 8]
lea esi, [esi + edi*8 + 0x20]
push ebx
push dword [ecx]
call eax
jmp 0x4092e9
push ebx
push dword [ebp + 8]
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push ebx
push ebx
push ebx
push 0xf001f
mov dword [esi + edi*8 + 0x1c], eax
push eax
lea esi, [esi + edi*8 + 0x20]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi], eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40ad50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [esi]
test al, 3
je 0x40add0
push ebx
xor ebx, ebx
inc ebx
test bl, al
je 0x40ad79
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call fcn.00450968
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
pop ecx
pop ecx
jne 0x40adcf
mov eax, dword [esi]
test al, 0x20
je 0x40ad94
push dword [esi + 4]
push 2
push ebx
push 0x4699d8
call fcn.00450b32
mov dword [esi + 0xc], ebx
jmp 0x40adcc
test al, 0x40
je 0x40adb1
push dword [esi + 4]
push 2
push ebx
push 0x4699dc
call fcn.00450b32
mov dword [esi + 0xc], 2
jmp 0x40adcc
test al, al
jns 0x40adcf
push dword [esi + 4]
push 3
push ebx
push 0x4699e0
call fcn.00450b32
mov dword [esi + 0xc], 4
add esp, 0x10
pop ebx
leave
ret

Function at 0x40ae04
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and dword [esi + 0xc], 0
push edi
push 0x4699e4
push dword [ebp + 8]
mov byte [esi + 8], 0
call fcn.00450849
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x40ae8f
push ebx
push edi
push 3
lea eax, [ebp + 8]
push 1
push eax
call fcn.0045019d
push edi
mov ebx, eax
call fcn.00450c26
add esp, 0x14
push 2
pop eax
cmp ebx, eax
jb 0x40ae6c
cmp byte [ebp + 8], 0xff
jne 0x40ae5b
cmp byte [ebp + 9], 0xfe
jne 0x40ae6c
mov dword [esi + 0xc], 1
jmp 0x40ae8a
cmp byte [ebp + 8], 0xfe
jne 0x40ae6c
cmp byte [ebp + 9], 0xff
jne 0x40ae6c
mov dword [esi + 0xc], eax
jmp 0x40ae8a
cmp ebx, 3
jb 0x40ae8e
cmp byte [ebp + 8], 0xef
jne 0x40ae8e
cmp byte [ebp + 9], 0xbb
jne 0x40ae8e
cmp byte [ebp + 0xa], 0xbf
jne 0x40ae8e
mov dword [esi + 0xc], 4
mov byte [esi + 8], 1
pop ebx
pop edi
pop ebp
ret 4
Function at 0x40af56
Capabilities:
Read file on windows

Disassembly:
test byte [esi], 4
push ebx
je 0x40af86
mov ebx, dword [edi]
push 0
push edi
push ebx
push dword [esp + 0x14]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40afac
and dword [edi], eax
push 1
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor al, al
jmp 0x40afae
push dword [esi + 4]
push dword [edi]
push 1
push dword [esp + 0x14]
call fcn.0045019d
mov dword [edi], eax
push dword [esi + 4]
call fcn.004501e7
add esp, 0x14
test eax, eax
je 0x40afac
and dword [edi], 0
jmp 0x40af82
mov al, 1
pop ebx
ret 4

Function at 0x40b2ab
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esi + 0x58]
cmp dword [esi + 0x5c], edi
jne 0x40b32a
cmp edi, 4
jle 0x40b2bc
push 4
pop edi
push 4
pop eax
sub eax, edi
push eax
lea eax, [edi + esi + 0x10]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00450420
mov eax, dword [esi + 0x58]
sub eax, edi
lea eax, [eax + esi + 0x14]
push edi
push eax
mov eax, esi
sub eax, edi
add eax, 0x14
push eax
call fcn.0044f370
push dword [esi + 4]
lea eax, [esi + 0x14]
push 0x40
push 1
push eax
mov dword [esi + 0x54], edi
call fcn.0045019d
and dword [esi + 0x5c], 0
add esp, 0x28
test eax, eax
mov dword [esi + 0x58], eax
jne 0x40b32a
push dword [esi + 4]
call fcn.004501b8
test eax, eax
pop ecx
jne 0x40b325
push dword [esi + 4]
call fcn.004501e7
test eax, eax
pop ecx
jne 0x40b325
pop edi
ret
or eax, 0xffffffff
pop edi
ret
mov ecx, dword [esi + 0x5c]
movzx eax, byte [ecx + esi + 0x14]
inc ecx
mov dword [esi + 0x5c], ecx
pop edi
ret

Function at 0x40b443
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [ebp - 8]
push eax
push 0x1f4
push 2
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x40b4a3
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret
Function at 0x40b8ca
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
mov edi, eax
xor esi, esi
cmp edi, ebx
mov byte [0x473552], bl
je 0x40b910
mov byte [0x473553], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x40b951
push ebx
push ebx
mov dword [ebp - 8], edi
call fcn.004514d7
add esp, 0x18
mov esi, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp esi, ebx
mov edi, eax
je 0x40b93c
push 0xffffffffffffffff
push esi
mov byte [0x473553], bl
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x473552], 1
jne 0x40b94a
or eax, 0xffffffff
jmp 0x40b94c
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40baad
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40bad1
test al, 0x10
je 0x40bad1
cmp byte [0x47d63d], bl
je 0x40bad1
mov al, 1
jmp 0x40bb23
push esi
push ebx
push 0x2000080
push 3
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40baf6
xor al, al
jmp 0x40bb22
cmp dword [ebp + 0x10], ebx
jne 0x40bb01
push dword [ebp + 0xc]
push ebx
jmp 0x40bb11
cmp dword [ebp + 0x10], 1
push ebx
jne 0x40bb0e
push ebx
push dword [ebp + 0xc]
jmp 0x40bb12
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
pop ebx
pop ebp
ret
Function at 0x40bb26
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x40bb46
xor al, al
jmp 0x40bc49
push ebx
push edi
push esi
call fcn.0044d086
pop ecx
push eax
push esi
push 0
push dword [ebp + 8]
mov dword [ebp - 4], eax
call sub.VERSION.dll_GetFileVersionInfoA
mov ebx, dword [ebp + 0x10]
push ebx
call fcn.0044d720
add eax, 0x1a
push eax
call fcn.0044d086
mov esi, 0x469344
mov edi, eax
push esi
push edi
call fcn.0044cf30
push esi
push ebx
call fcn.0044d5b0
add esp, 0x18
test eax, eax
je 0x40bc10
push str.StringFileInfo_
push edi
call fcn.0044cf40
push esi
push ebx
call fcn.0044d830
add esp, 0x10
test eax, eax
jne 0x40bc07
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40bbe7
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
push ebx
push 4
lea edx, [edi + 0x10]
pop ecx
call fcn.0040d372
shr ebx, 0x10
lea edx, [edi + 0x14]
push ebx
call fcn.0040d372
mov ebx, dword [ebp + 0x10]
add esp, 8
jmp 0x40bbf4
push str.04090000
push edi
call fcn.0044cf40
pop ecx
pop ecx
push esi
push edi
call fcn.0044cf40
push ebx
push edi
call fcn.0044cf40
add esp, 0x10
jmp 0x40bc10
push ebx
push edi
call fcn.0044cf40
pop ecx
pop ecx
push str.DefaultLangCodepage
push ebx
call fcn.0044ced8
test eax, eax
pop ecx
pop ecx
jne 0x40bc4c
mov esi, dword [ebp + 0xc]
push 8
lea eax, [edi + 0x10]
push eax
push esi
call fcn.0044fbe0
push dword [ebp - 4]
mov byte [esi + 8], 0
call fcn.0044d0f0
push edi
call fcn.0044d0f0
add esp, 0x14
mov al, 1
pop edi
pop ebx
pop esi
leave
ret
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40bcc2
push esi
push ebx
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
jne 0x40bc99
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
shr ecx, 0x10
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push str._u._u._u._u
push dword [ebp + 0xc]
call fcn.0044d7ab
add esp, 0x18
jmp 0x40bcac
push 0x200
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.0044fbe0
add esp, 0xc
mov bl, 1
push dword [ebp - 4]
call fcn.0044d0f0
push edi
call fcn.0044d0f0
pop ecx
pop ecx
mov al, bl
jmp 0x40bc47
xor bl, bl
jmp 0x40bcae

Function at 0x40bcdb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x140
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40bd15
lea eax, [esp]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x40bd0b
or eax, eax
jmp 0x40bd15
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp]
mov esp, ebp
pop ebp
ret
Function at 0x40beb7
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x670
push ebx
push esi
push dword [ebp + 8]
lea eax, [esp + 0x14]
mov byte [esp + 0x13], 0
call fcn.0040bd19
pop ecx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40befc
test al, 0x10
je 0x40befc
lea eax, [esp + 0x10]
push str..
push eax
call fcn.0044cf40
pop ecx
pop ecx
lea eax, [esp + 0x570]
push eax
lea eax, [esp + 0x46c]
push eax
lea eax, [esp + 0x260]
push eax
lea eax, [esp + 0x36c]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0044fa34
add esp, 0x14
lea eax, [esp + 0x118]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov bl, 1
je 0x40bfcd
cmp bl, 1
jne 0x40bfcd
test byte [esp + 0x118], 0x10
jne 0x40bfa5
lea eax, [esp + 0x360]
push eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x17], bl
call fcn.0044cf30
lea eax, [esp + 0x260]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0044cf40
lea eax, [esp + 0x154]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0044cf40
add esp, 0x18
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 1
jne 0x40bfbc
lea eax, [esp + 0x118]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40bf49
xor bl, bl
jmp 0x40bf49
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, byte [esp + 0xf]
jmp 0x40bfbe
Function at 0x40bfd3
Capabilities:
Check if file exists
Copy file
Delete file
Enumerate files on windows
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98c
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [esp + 0x22c]
xor bl, bl
call fcn.0040bd19
pop ecx
push dword [ebp + 0xc]
lea eax, [esp + 0x334]
call fcn.0040bd19
pop ecx
lea eax, [esp + 0x330]
push eax
lea eax, [esp + 0x22c]
push eax
call fcn.0040be14
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop ecx
mov byte [esp + 0x17], al
pop ecx
lea eax, [esp + 0x228]
push eax
call esi
cmp eax, 0xffffffff
mov edi, str..
je 0x40c04d
test al, 0x10
je 0x40c04d
lea eax, [esp + 0x228]
push edi
push eax
call fcn.0044cf40
pop ecx
pop ecx
lea eax, [esp + 0x330]
push eax
call esi
cmp eax, 0xffffffff
je 0x40c070
test al, 0x10
je 0x40c070
lea eax, [esp + 0x330]
push edi
push eax
call fcn.0044cf40
pop ecx
pop ecx
lea eax, [esp + 0x890]
push eax
lea eax, [esp + 0x57c]
push eax
lea eax, [esp + 0x688]
push eax
lea eax, [esp + 0x794]
push eax
lea eax, [esp + 0x238]
push eax
call fcn.0044fa34
add esp, 0x14
lea eax, [esp + 0x438]
push eax
lea eax, [esp + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
mov byte [esp + 0x12], 1
je 0x40c208
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp byte [esp + 0x12], 1
jne 0x40c208
test byte [esp + 0x438], 0x10
jne 0x40c1e3
lea eax, [esp + 0x330]
push eax
lea eax, [esp + 0x894]
push eax
lea eax, [esp + 0x580]
push eax
lea eax, [esp + 0x470]
push eax
lea esi, [esp + 0x130]
call fcn.0040c21b
lea eax, [esp + 0x798]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0044cf30
lea eax, [esp + 0x698]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0044cf40
lea eax, [esp + 0x484]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0044cf40
mov eax, esi
push eax
call fcn.0040bcc6
add esp, 0x2c
test al, al
je 0x40c179
cmp byte [ebp + 0x10], 0
je 0x40c1c4
mov eax, esi
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
mov eax, esi
push eax
je 0x40c1d2
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp byte [ebp + 0x14], 1
lea eax, [esp + 0x120]
jne 0x40c1b6
cmp byte [esp + 0x13], 0
jne 0x40c19b
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x40c1c0
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
je 0x40c1c4
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40c1c0
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
jne 0x40c1e1
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x40c214
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x40c206
mov bl, 1
lea eax, [esp + 0x438]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40c0ce
mov byte [esp + 0x12], al
jmp 0x40c0ce
xor bl, bl
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c411
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call fcn.0044d720
dec eax
add eax, esi
cmp byte [eax], 0x5c
pop ecx
jne 0x40c42a
mov byte [eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40c4a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jne 0x40c454
push 0
push esi
call ebp
test eax, eax
je 0x40c459
mov al, 1
jmp 0x40c4a6
cmp eax, 3
jne 0x40c4a4
push esi
call fcn.0040ceef
mov edi, eax
push 0x5c
push edi
call fcn.004513b0
add esp, 0xc
test eax, eax
jne 0x40c479
push edi
call fcn.0044d0f0
pop ecx
jmp 0x40c4a4
push ebx
push edi
mov byte [eax], 0
call fcn.0040c411
push edi
mov bl, al
call fcn.0044d0f0
test bl, bl
pop ecx
pop ecx
je 0x40c49b
push 0
push esi
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x40c4a6
test al, 0x10
jne 0x40c450
xor al, al
pop edi
pop esi
pop ebp
ret

Function at 0x40c4aa
Capabilities:
Check if file exists
Copy file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push dword [ebp + 8]
lea eax, [ebp - 0x230]
call fcn.0040bd19
push dword [ebp + 0xc]
lea eax, [ebp - 0x128]
call fcn.0040bd19
pop ecx
pop ecx
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40c523
cmp byte [ebp + 0x10], al
je 0x40c51f
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
je 0x40c51b
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov al, 1
leave
ret
xor al, al
leave
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [ebp - 0x230]
push eax
call esi
cmp eax, 0xffffffff
je 0x40c53c
test al, 0x10
jne 0x40c543
xor al, al
jmp 0x40c5fa
push ebx
lea eax, [ebp - 0x128]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40c55d
test al, 0x10
je 0x40c55d
cmp byte [ebp + 0x10], bl
jmp 0x40c57e
lea eax, [ebp - 0x128]
push eax
call fcn.0040c411
test al, al
pop ecx
je 0x40c580
lea eax, [ebp - 0x128]
push eax
call esi
cmp eax, 0xffffffff
je 0x40c580
test al, 0x10
jne 0x40c584
xor al, al
jmp 0x40c5f9
lea eax, [ebp - 0x230]
push str..
push eax
call fcn.0044cf40
lea eax, [ebp - 0x230]
push eax
call fcn.0044d720
mov byte [ebp + eax - 0x22f], bl
lea eax, [ebp - 0x128]
push eax
call fcn.0044d720
mov byte [ebp + eax - 0x127], bl
lea eax, [ebp - 0x230]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x128]
mov dword [ebp - 0x14], eax
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 2
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb al, al
inc al
pop ebx
pop esi
leave
ret
Function at 0x40c5fd
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x128]
call fcn.0040bd19
push dword [ebp + 0xc]
lea eax, [ebp - 0x230]
call fcn.0040bd19
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop ecx
pop ecx
lea eax, [ebp - 0x128]
push eax
call esi
cmp eax, 0xffffffff
je 0x40c63d
test al, 0x10
jne 0x40c644
xor al, al
jmp 0x40c75b
push ebx
lea eax, [ebp - 0x230]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40c6a7
test al, 0x10
je 0x40c6a7
cmp byte [ebp + 0x10], bl
je 0x40c6dc
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40c6a7
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
je 0x40c6a7
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jmp 0x40c6f2
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0040be14
test al, al
pop ecx
pop ecx
je 0x40c6f7
push 1
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0040c4aa
add esp, 0xc
test al, al
jne 0x40c6e0
xor al, al
jmp 0x40c75a
lea eax, [ebp - 0x128]
push 1
push eax
call fcn.0040c75e
pop ecx
pop ecx
test al, al
setne al
jmp 0x40c75a
lea eax, [ebp - 0x128]
push eax
call fcn.0044d720
mov byte [ebp + eax - 0x127], bl
lea eax, [ebp - 0x230]
push eax
call fcn.0044d720
mov byte [ebp + eax - 0x22f], bl
lea eax, [ebp - 0x128]
mov dword [ebp - 0x18], eax
pop ecx
lea eax, [ebp - 0x230]
mov dword [ebp - 0x14], eax
pop ecx
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb al, al
inc al
pop ebx
pop esi
leave
ret

Function at 0x40c75e
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push dword [ebp + 8]
lea eax, [ebp - 0x128]
call fcn.0040bd19
pop ecx
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40c78c
test al, 0x10
jne 0x40c790
xor al, al
leave
ret
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
lea eax, [ebp - 0x128]
push eax
jne 0x40c7ac
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne al
jmp 0x40c7ee
call fcn.0044d720
mov byte [ebp + eax - 0x127], bl
lea eax, [ebp - 0x128]
mov dword [ebp - 0x18], eax
pop ecx
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 3
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb al, al
inc al
pop ebx
leave
ret
Function at 0x40c8a2
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
lea eax, [ebp - 0x29c]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x40c92c
push 0x100
lea eax, [ebp - 0x10c]
push eax
call sub.WSOCK32.dll_gethostname
lea eax, [ebp - 0x10c]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x40c92c
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x40c8f5
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x40c8ec
cmp esi, edx
jle 0x40c900
push str.0.0.0.0
jmp 0x40c91b
push 4
push dword [eax + esi*4 - 4]
lea eax, [ebp - 8]
push eax
call fcn.0044f370
add esp, 0xc
push dword [ebp - 8]
call sub.WSOCK32.dll_inet_ntoa
push eax
push dword [ebp + 8]
call fcn.0044cf30
pop ecx
pop ecx
call sub.WSOCK32.dll_WSACleanup
leave
ret
push 0x468eee
push dword [ebp + 8]
call fcn.0044cf30
pop ecx
pop ecx
leave
ret

Function at 0x40ca46
Capabilities:
Enumerate gui resources
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x47d63c], 0
push ebx
push esi
mov ebx, eax
je 0x40cab1
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40ca74
xor eax, eax
jmp 0x40caf3
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40cab3
jmp 0x40ca70
xor esi, esi
cmp byte [0x47d63d], 0
je 0x40cad0
test bl, 4
je 0x40cad0
push esi
push 0x40caf7
xor ebx, 4
call dword [sym.imp.USER32.dll_EnumWindows]
cmp ebx, 0x20
je 0x40cae4
cmp ebx, 0x40
je 0x40cae4
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40caf3
xor eax, eax
cmp ebx, 0x20
sete al
push esi
push eax
call sub.KERNEL32.dll_SetSystemPowerState
pop esi
pop ebx
leave
ret

Function at 0x40cb33
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
jne 0x40cb4c
push dword [esp + 4]
call fcn.0040cb0e
test al, al
pop ecx
jne 0x40cb68
push 1
jmp 0x40cb4e
push 0
push 0
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
ret