joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40982d
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 0x40984a
inc edi
add eax, 8
cmp edi, 0x10
jl 0x40983d
cmp edi, 0x10
jne 0x409856
xor eax, eax
jmp 0x4098f6
cmp byte [esi + 0x18], 1
jne 0x4098cd
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 0x4098a9
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi], eax
je 0x4098a9
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 0x4098b5
mov eax, 0x427dbe
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 0x4098f4
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 0x40b30e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [esi]
test al, 3
je 0x40b38e
push ebx
xor ebx, ebx
inc ebx
test bl, al
je 0x40b337
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call fcn.00450f94
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
pop ecx
pop ecx
jne 0x40b38d
mov eax, dword [esi]
test al, 0x20
je 0x40b352
push dword [esi + 4]
push 2
push ebx
push 0x46a7d8
call fcn.0045115e
mov dword [esi + 0xc], ebx
jmp 0x40b38a
test al, 0x40
je 0x40b36f
push dword [esi + 4]
push 2
push ebx
push 0x46a7dc
call fcn.0045115e
mov dword [esi + 0xc], 2
jmp 0x40b38a
test al, al
jns 0x40b38d
push dword [esi + 4]
push 3
push ebx
push 0x46a7e0
call fcn.0045115e
mov dword [esi + 0xc], 4
add esp, 0x10
pop ebx
leave
ret

Function at 0x40b3c2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and dword [esi + 0xc], 0
push edi
push 0x46a7e4
push dword [ebp + 8]
mov byte [esi + 8], 0
call fcn.00450e75
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x40b44d
push ebx
push edi
push 3
lea eax, [ebp + 8]
push 1
push eax
call fcn.0045156a
push edi
mov ebx, eax
call fcn.00451252
add esp, 0x14
push 2
pop eax
cmp ebx, eax
jb 0x40b42a
cmp byte [ebp + 8], 0xff
jne 0x40b419
cmp byte [ebp + 9], 0xfe
jne 0x40b42a
mov dword [esi + 0xc], 1
jmp 0x40b448
cmp byte [ebp + 8], 0xfe
jne 0x40b42a
cmp byte [ebp + 9], 0xff
jne 0x40b42a
mov dword [esi + 0xc], eax
jmp 0x40b448
cmp ebx, 3
jb 0x40b44c
cmp byte [ebp + 8], 0xef
jne 0x40b44c
cmp byte [ebp + 9], 0xbb
jne 0x40b44c
cmp byte [ebp + 0xa], 0xbf
jne 0x40b44c
mov dword [esi + 0xc], 4
mov byte [esi + 8], 1
pop ebx
pop edi
pop ebp
ret 4
Function at 0x40b514
Capabilities:
Read file on windows

Disassembly:
test byte [esi], 4
push ebx
je 0x40b544
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 0x40b56a
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 0x40b56c
push dword [esi + 4]
push dword [edi]
push 1
push dword [esp + 0x14]
call fcn.0045156a
mov dword [edi], eax
push dword [esi + 4]
call fcn.004515b4
add esp, 0x14
test eax, eax
je 0x40b56a
and dword [edi], 0
jmp 0x40b540
mov al, 1
pop ebx
ret 4

Function at 0x40b869
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esi + 0x58]
cmp dword [esi + 0x5c], edi
jne 0x40b8e8
cmp edi, 4
jle 0x40b87a
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.004517f0
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.00450220
push dword [esi + 4]
lea eax, [esi + 0x14]
push 0x40
push 1
push eax
mov dword [esi + 0x54], edi
call fcn.0045156a
and dword [esi + 0x5c], 0
add esp, 0x28
test eax, eax
mov dword [esi + 0x58], eax
jne 0x40b8e8
push dword [esi + 4]
call fcn.00451585
test eax, eax
pop ecx
jne 0x40b8e3
push dword [esi + 4]
call fcn.004515b4
test eax, eax
pop ecx
jne 0x40b8e3
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 0x40ba01
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 0x40ba61
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 0x40be88
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 [0x4744b2], bl
je 0x40bece
mov byte [0x4744b3], 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 0x40bf0f
push ebx
push ebx
mov dword [ebp - 8], edi
call fcn.00452397
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 0x40befa
push 0xffffffffffffffff
push esi
mov byte [0x4744b3], bl
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x4744b2], 1
jne 0x40bf08
or eax, 0xffffffff
jmp 0x40bf0a
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c06b
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 0x40c08f
test al, 0x10
je 0x40c08f
cmp byte [0x47e59d], bl
je 0x40c08f
mov al, 1
jmp 0x40c0e1
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 0x40c0b4
xor al, al
jmp 0x40c0e0
cmp dword [ebp + 0x10], ebx
jne 0x40c0bf
push dword [ebp + 0xc]
push ebx
jmp 0x40c0cf
cmp dword [ebp + 0x10], 1
push ebx
jne 0x40c0cc
push ebx
push dword [ebp + 0xc]
jmp 0x40c0d0
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 0x40c0e4
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 0x40c104
xor al, al
jmp 0x40c207
push ebx
push edi
push esi
call fcn.0044df46
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.0044e5e0
add eax, 0x1a
push eax
call fcn.0044df46
mov esi, 0x46a144
mov edi, eax
push esi
push edi
call fcn.0044ddf0
push esi
push ebx
call fcn.0044e470
add esp, 0x18
test eax, eax
je 0x40c1ce
push str.StringFileInfo_
push edi
call fcn.0044de00
push esi
push ebx
call fcn.0044e840
add esp, 0x10
test eax, eax
jne 0x40c1c5
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 0x40c1a5
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
push ebx
push 4
lea edx, [edi + 0x10]
pop ecx
call fcn.0040d935
shr ebx, 0x10
lea edx, [edi + 0x14]
push ebx
call fcn.0040d935
mov ebx, dword [ebp + 0x10]
add esp, 8
jmp 0x40c1b2
push str.04090000
push edi
call fcn.0044de00
pop ecx
pop ecx
push esi
push edi
call fcn.0044de00
push ebx
push edi
call fcn.0044de00
add esp, 0x10
jmp 0x40c1ce
push ebx
push edi
call fcn.0044de00
pop ecx
pop ecx
push str.DefaultLangCodepage
push ebx
call fcn.0044dd98
test eax, eax
pop ecx
pop ecx
jne 0x40c20a
mov esi, dword [ebp + 0xc]
push 8
lea eax, [edi + 0x10]
push eax
push esi
call fcn.00450a90
push dword [ebp - 4]
mov byte [esi + 8], 0
call fcn.0044dfb0
push edi
call fcn.0044dfb0
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 0x40c280
push esi
push ebx
call fcn.0044e470
test eax, eax
pop ecx
pop ecx
jne 0x40c257
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.0044e66b
add esp, 0x18
jmp 0x40c26a
push 0x200
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.00450a90
add esp, 0xc
mov bl, 1
push dword [ebp - 4]
call fcn.0044dfb0
push edi
call fcn.0044dfb0
pop ecx
pop ecx
mov al, bl
jmp 0x40c205
xor bl, bl
jmp 0x40c26c

Function at 0x40c299
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 0x40c2d3
lea eax, [esp]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x40c2c9
or eax, eax
jmp 0x40c2d3
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp]
mov esp, ebp
pop ebp
ret
Function at 0x40c475
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.0040c2d7
pop ecx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40c4ba
test al, 0x10
je 0x40c4ba
lea eax, [esp + 0x10]
push str..
push eax
call fcn.0044de00
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.004508e4
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 0x40c58b
cmp bl, 1
jne 0x40c58b
test byte [esp + 0x118], 0x10
jne 0x40c563
lea eax, [esp + 0x360]
push eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x17], bl
call fcn.0044ddf0
lea eax, [esp + 0x260]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0044de00
lea eax, [esp + 0x154]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0044de00
add esp, 0x18
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 1
jne 0x40c57a
lea eax, [esp + 0x118]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40c507
xor bl, bl
jmp 0x40c507
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 0x40c57c
Function at 0x40c591
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.0040c2d7
pop ecx
push dword [ebp + 0xc]
lea eax, [esp + 0x334]
call fcn.0040c2d7
pop ecx
lea eax, [esp + 0x330]
push eax
lea eax, [esp + 0x22c]
push eax
call fcn.0040c3d2
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 0x40c60b
test al, 0x10
je 0x40c60b
lea eax, [esp + 0x228]
push edi
push eax
call fcn.0044de00
pop ecx
pop ecx
lea eax, [esp + 0x330]
push eax
call esi
cmp eax, 0xffffffff
je 0x40c62e
test al, 0x10
je 0x40c62e
lea eax, [esp + 0x330]
push edi
push eax
call fcn.0044de00
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.004508e4
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 0x40c7c6
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp byte [esp + 0x12], 1
jne 0x40c7c6
test byte [esp + 0x438], 0x10
jne 0x40c7a1
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.0040c7d9
lea eax, [esp + 0x798]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0044ddf0
lea eax, [esp + 0x698]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0044de00
lea eax, [esp + 0x484]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0044de00
mov eax, esi
push eax
call fcn.0040c284
add esp, 0x2c
test al, al
je 0x40c737
cmp byte [ebp + 0x10], 0
je 0x40c782
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 0x40c790
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp byte [ebp + 0x14], 1
lea eax, [esp + 0x120]
jne 0x40c774
cmp byte [esp + 0x13], 0
jne 0x40c759
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x40c77e
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
je 0x40c782
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40c77e
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
jne 0x40c79f
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x40c7d2
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x40c7c4
mov bl, 1
lea eax, [esp + 0x438]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40c68c
mov byte [esp + 0x12], al
jmp 0x40c68c
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 0x40c9cf
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.0044e5e0
dec eax
add eax, esi
cmp byte [eax], 0x5c
pop ecx
jne 0x40c9e8
mov byte [eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40ca5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jne 0x40ca12
push 0
push esi
call ebp
test eax, eax
je 0x40ca17
mov al, 1
jmp 0x40ca64
cmp eax, 3
jne 0x40ca62
push esi
call fcn.0040d4ad
mov edi, eax
push 0x5c
push edi
call fcn.00452270
add esp, 0xc
test eax, eax
jne 0x40ca37
push edi
call fcn.0044dfb0
pop ecx
jmp 0x40ca62
push ebx
push edi
mov byte [eax], 0
call fcn.0040c9cf
push edi
mov bl, al
call fcn.0044dfb0
test bl, bl
pop ecx
pop ecx
je 0x40ca59
push 0
push esi
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x40ca64
test al, 0x10
jne 0x40ca0e
xor al, al
pop edi
pop esi
pop ebp
ret

Function at 0x40ca68
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.0040c2d7
push dword [ebp + 0xc]
lea eax, [ebp - 0x128]
call fcn.0040c2d7
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 0x40cae1
cmp byte [ebp + 0x10], al
je 0x40cadd
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0044e470
test eax, eax
pop ecx
pop ecx
je 0x40cad9
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 0x40cafa
test al, 0x10
jne 0x40cb01
xor al, al
jmp 0x40cbb8
push ebx
lea eax, [ebp - 0x128]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40cb1b
test al, 0x10
je 0x40cb1b
cmp byte [ebp + 0x10], bl
jmp 0x40cb3c
lea eax, [ebp - 0x128]
push eax
call fcn.0040c9cf
test al, al
pop ecx
je 0x40cb3e
lea eax, [ebp - 0x128]
push eax
call esi
cmp eax, 0xffffffff
je 0x40cb3e
test al, 0x10
jne 0x40cb42
xor al, al
jmp 0x40cbb7
lea eax, [ebp - 0x230]
push str..
push eax
call fcn.0044de00
lea eax, [ebp - 0x230]
push eax
call fcn.0044e5e0
mov byte [ebp + eax - 0x22f], bl
lea eax, [ebp - 0x128]
push eax
call fcn.0044e5e0
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 0x40cbbb
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.0040c2d7
push dword [ebp + 0xc]
lea eax, [ebp - 0x230]
call fcn.0040c2d7
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop ecx
pop ecx
lea eax, [ebp - 0x128]
push eax
call esi
cmp eax, 0xffffffff
je 0x40cbfb
test al, 0x10
jne 0x40cc02
xor al, al
jmp 0x40cd19
push ebx
lea eax, [ebp - 0x230]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40cc65
test al, 0x10
je 0x40cc65
cmp byte [ebp + 0x10], bl
je 0x40cc9a
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40cc65
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0044e470
test eax, eax
pop ecx
pop ecx
je 0x40cc65
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jmp 0x40ccb0
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0040c3d2
test al, al
pop ecx
pop ecx
je 0x40ccb5
push 1
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0040ca68
add esp, 0xc
test al, al
jne 0x40cc9e
xor al, al
jmp 0x40cd18
lea eax, [ebp - 0x128]
push 1
push eax
call fcn.0040cd1c
pop ecx
pop ecx
test al, al
setne al
jmp 0x40cd18
lea eax, [ebp - 0x128]
push eax
call fcn.0044e5e0
mov byte [ebp + eax - 0x127], bl
lea eax, [ebp - 0x230]
push eax
call fcn.0044e5e0
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 0x40cd1c
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.0040c2d7
pop ecx
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40cd4a
test al, 0x10
jne 0x40cd4e
xor al, al
leave
ret
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
lea eax, [ebp - 0x128]
push eax
jne 0x40cd6a
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne al
jmp 0x40cdac
call fcn.0044e5e0
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 0x40ce60
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 0x40ceea
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 0x40ceea
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x40ceb3
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x40ceaa
cmp esi, edx
jle 0x40cebe
push str.0.0.0.0
jmp 0x40ced9
push 4
push dword [eax + esi*4 - 4]
lea eax, [ebp - 8]
push eax
call fcn.00450220
add esp, 0xc
push dword [ebp - 8]
call sub.WSOCK32.dll_inet_ntoa
push eax
push dword [ebp + 8]
call fcn.0044ddf0
pop ecx
pop ecx
call sub.WSOCK32.dll_WSACleanup
leave
ret
push 0x469cee
push dword [ebp + 8]
call fcn.0044ddf0
pop ecx
pop ecx
leave
ret

Function at 0x40d004
Capabilities:
Enumerate gui resources
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x47e59c], 0
push ebx
push esi
mov ebx, eax
je 0x40d06f
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 0x40d032
xor eax, eax
jmp 0x40d0b1
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 0x40d071
jmp 0x40d02e
xor esi, esi
cmp byte [0x47e59d], 0
je 0x40d08e
test bl, 4
je 0x40d08e
push esi
push 0x40d0b5
xor ebx, 4
call dword [sym.imp.USER32.dll_EnumWindows]
cmp ebx, 0x20
je 0x40d0a2
cmp ebx, 0x40
je 0x40d0a2
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40d0b1
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 0x40d0f1
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
jne 0x40d10a
push dword [esp + 4]
call fcn.0040d0cc
test al, al
pop ecx
jne 0x40d126
push 1
jmp 0x40d10c
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