joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40db79
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 [0x4754b2], bl
je 0x40dbbf
mov byte [0x4754b3], 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 0x40dc02
push ebx
push ebx
mov dword [ebp - 8], edi
call fcn.004536f7
add esp, 0x18
mov esi, eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp esi, ebx
mov edi, eax
je 0x40dbed
push 0xffffffffffffffff
push esi
mov byte [0x4754b3], bl
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x4754b2], 1
jne 0x40dbfb
or eax, 0xffffffff
jmp 0x40dbfd
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40dd5e
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 0x40dd82
test al, 0x10
je 0x40dd82
cmp byte [0x47e0dd], bl
je 0x40dd82
mov al, 1
jmp 0x40ddd4
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 0x40dda7
xor al, al
jmp 0x40ddd3
cmp dword [ebp + 0x10], ebx
jne 0x40ddb2
push dword [ebp + 0xc]
push ebx
jmp 0x40ddc2
cmp dword [ebp + 0x10], 1
push ebx
jne 0x40ddbf
push ebx
push dword [ebp + 0xc]
jmp 0x40ddc3
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 0x40ddd7
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 0x40ddf7
xor al, al
jmp 0x40defa
push ebx
push edi
push esi
call fcn.0044f4b6
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.00451750
add eax, 0x1a
push eax
call fcn.0044f4b6
mov esi, 0x46b458
mov edi, eax
push esi
push edi
call fcn.0044f360
push esi
push ebx
call fcn.004514b0
add esp, 0x18
test eax, eax
je 0x40dec1
push str.StringFileInfo_
push edi
call fcn.0044f370
push esi
push ebx
call fcn.00451920
add esp, 0x10
test eax, eax
jne 0x40deb8
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 0x40de98
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
push ebx
push 4
lea edx, [edi + 0x10]
pop ecx
call fcn.0040f60c
shr ebx, 0x10
lea edx, [edi + 0x14]
push ebx
call fcn.0040f60c
mov ebx, dword [ebp + 0x10]
add esp, 8
jmp 0x40dea5
push str.04090000
push edi
call fcn.0044f370
pop ecx
pop ecx
push esi
push edi
call fcn.0044f370
push ebx
push edi
call fcn.0044f370
add esp, 0x10
jmp 0x40dec1
push ebx
push edi
call fcn.0044f370
pop ecx
pop ecx
push str.DefaultLangCodepage
push ebx
call fcn.0044f30b
test eax, eax
pop ecx
pop ecx
jne 0x40defd
mov esi, dword [ebp + 0xc]
push 8
lea eax, [edi + 0x10]
push eax
push esi
call fcn.00452170
push dword [ebp - 4]
mov byte [esi + 8], 0
call fcn.0044f520
push edi
call fcn.0044f520
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 0x40df73
push esi
push ebx
call fcn.004514b0
test eax, eax
pop ecx
pop ecx
jne 0x40df4a
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.00451899
add esp, 0x18
jmp 0x40df5d
push 0x200
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.00452170
add esp, 0xc
mov bl, 1
push dword [ebp - 4]
call fcn.0044f520
push edi
call fcn.0044f520
pop ecx
pop ecx
mov al, bl
jmp 0x40def8
xor bl, bl
jmp 0x40df5f

Function at 0x40df8c
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 0x40dfc6
lea eax, [esp]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x40dfbc
or eax, eax
jmp 0x40dfc6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp]
mov esp, ebp
pop ebp
ret
Function at 0x40e168
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.0040dfca
pop ecx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40e1ad
test al, 0x10
je 0x40e1ad
lea eax, [esp + 0x10]
push str..
push eax
call fcn.0044f370
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.00451fc3
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 0x40e27e
cmp bl, 1
jne 0x40e27e
test byte [esp + 0x118], 0x10
jne 0x40e256
lea eax, [esp + 0x360]
push eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x17], bl
call fcn.0044f360
lea eax, [esp + 0x260]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0044f370
lea eax, [esp + 0x154]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0044f370
add esp, 0x18
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 1
jne 0x40e26d
lea eax, [esp + 0x118]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40e1fa
xor bl, bl
jmp 0x40e1fa
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 0x40e26f
Function at 0x40e284
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.0040dfca
pop ecx
push dword [ebp + 0xc]
lea eax, [esp + 0x334]
call fcn.0040dfca
pop ecx
lea eax, [esp + 0x330]
push eax
lea eax, [esp + 0x22c]
push eax
call fcn.0040e0c5
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 0x40e2fe
test al, 0x10
je 0x40e2fe
lea eax, [esp + 0x228]
push edi
push eax
call fcn.0044f370
pop ecx
pop ecx
lea eax, [esp + 0x330]
push eax
call esi
cmp eax, 0xffffffff
je 0x40e321
test al, 0x10
je 0x40e321
lea eax, [esp + 0x330]
push edi
push eax
call fcn.0044f370
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.00451fc3
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 0x40e4b9
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp byte [esp + 0x12], 1
jne 0x40e4b9
test byte [esp + 0x438], 0x10
jne 0x40e494
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.0040e4cc
lea eax, [esp + 0x798]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0044f360
lea eax, [esp + 0x698]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0044f370
lea eax, [esp + 0x484]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0044f370
mov eax, esi
push eax
call fcn.0040df77
add esp, 0x2c
test al, al
je 0x40e42a
cmp byte [ebp + 0x10], 0
je 0x40e475
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 0x40e483
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp byte [ebp + 0x14], 1
lea eax, [esp + 0x120]
jne 0x40e467
cmp byte [esp + 0x13], 0
jne 0x40e44c
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x40e471
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
je 0x40e475
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40e471
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
jne 0x40e492
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x40e4c5
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x40e4b7
mov bl, 1
lea eax, [esp + 0x438]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40e37f
mov byte [esp + 0x12], al
jmp 0x40e37f
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 0x40e6c2
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.00451750
dec eax
add eax, esi
cmp byte [eax], 0x5c
pop ecx
jne 0x40e6db
mov byte [eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40e751
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jne 0x40e705
push 0
push esi
call ebp
test eax, eax
je 0x40e70a
mov al, 1
jmp 0x40e757
cmp eax, 3
jne 0x40e755
push esi
call fcn.0040f14a
mov edi, eax
push 0x5c
push edi
call fcn.004535d0
add esp, 0xc
test eax, eax
jne 0x40e72a
push edi
call fcn.0044f520
pop ecx
jmp 0x40e755
push ebx
push edi
mov byte [eax], 0
call fcn.0040e6c2
push edi
mov bl, al
call fcn.0044f520
test bl, bl
pop ecx
pop ecx
je 0x40e74c
push 0
push esi
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x40e757
test al, 0x10
jne 0x40e701
xor al, al
pop edi
pop esi
pop ebp
ret

Function at 0x40e75b
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.0040dfca
push dword [ebp + 0xc]
lea eax, [ebp - 0x128]
call fcn.0040dfca
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 0x40e7d4
cmp byte [ebp + 0x10], al
je 0x40e7d0
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.004514b0
test eax, eax
pop ecx
pop ecx
je 0x40e7cc
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 0x40e7ed
test al, 0x10
jne 0x40e7f4
xor al, al
jmp 0x40e8ab
push ebx
lea eax, [ebp - 0x128]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40e80e
test al, 0x10
je 0x40e80e
cmp byte [ebp + 0x10], bl
jmp 0x40e82f
lea eax, [ebp - 0x128]
push eax
call fcn.0040e6c2
test al, al
pop ecx
je 0x40e831
lea eax, [ebp - 0x128]
push eax
call esi
cmp eax, 0xffffffff
je 0x40e831
test al, 0x10
jne 0x40e835
xor al, al
jmp 0x40e8aa
lea eax, [ebp - 0x230]
push str..
push eax
call fcn.0044f370
lea eax, [ebp - 0x230]
push eax
call fcn.00451750
mov byte [ebp + eax - 0x22f], bl
lea eax, [ebp - 0x128]
push eax
call fcn.00451750
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 0x40e8ae
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x544
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x234]
call fcn.0040dfca
push dword [ebp + 0xc]
lea eax, [ebp - 0x12c]
call fcn.0040dfca
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop ecx
pop ecx
lea eax, [ebp - 0x234]
push eax
call esi
cmp eax, 0xffffffff
je 0x40e8ee
test al, 0x10
jne 0x40e8f5
xor al, al
jmp 0x40ea9d
push ebx
lea eax, [ebp - 0x12c]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40e9e9
test al, 0x10
je 0x40e9e9
cmp byte [ebp + 0x10], bl
je 0x40ea1e
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40e96e
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004514b0
test eax, eax
pop ecx
pop ecx
je 0x40e967
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jmp 0x40ea34
mov al, 1
jmp 0x40ea9c
lea eax, [ebp - 0x338]
push eax
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x544]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00451fc3
lea eax, [ebp - 0x12c]
push 0x46b458
push eax
call fcn.0044f370
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.0044f370
add esp, 0x24
cmp byte [ebp - 0x338], bl
je 0x40e9e9
lea eax, [ebp - 0x12c]
push 0x46bb48
push eax
call fcn.0044f370
lea eax, [ebp - 0x338]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.0044f370
add esp, 0x10
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0040e0c5
test al, al
pop ecx
pop ecx
je 0x40ea39
push 1
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0040e75b
add esp, 0xc
test al, al
jne 0x40ea22
xor al, al
jmp 0x40ea9c
lea eax, [ebp - 0x234]
push 1
push eax
call fcn.0040eaa0
pop ecx
pop ecx
test al, al
setne al
jmp 0x40ea9c
lea eax, [ebp - 0x234]
push eax
call fcn.00451750
mov byte [ebp + eax - 0x233], bl
lea eax, [ebp - 0x12c]
push eax
call fcn.00451750
mov byte [ebp + eax - 0x12b], bl
lea eax, [ebp - 0x234]
mov dword [ebp - 0x18], eax
pop ecx
lea eax, [ebp - 0x12c]
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 0x40eaa0
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.0040dfca
pop ecx
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40eace
test al, 0x10
jne 0x40ead2
xor al, al
leave
ret
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
lea eax, [ebp - 0x128]
push eax
jne 0x40eaee
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne al
jmp 0x40eb30
call fcn.00451750
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 0x40ebe4
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 0x40ec6e
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 0x40ec6e
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x40ec37
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x40ec2e
cmp esi, edx
jle 0x40ec42
push str.0.0.0.0
jmp 0x40ec5d
push 4
push dword [eax + esi*4 - 4]
lea eax, [ebp - 8]
push eax
call fcn.0044f8e0
add esp, 0xc
push dword [ebp - 8]
call sub.WSOCK32.dll_inet_ntoa
push eax
push dword [ebp + 8]
call fcn.0044f360
pop ecx
pop ecx
call sub.WSOCK32.dll_WSACleanup
leave
ret
push 0x46ad3e
push dword [ebp + 8]
call fcn.0044f360
pop ecx
pop ecx
leave
ret

Function at 0x40ed88
Capabilities:
Enumerate gui resources
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x47e0dc], 0
push ebx
push esi
mov ebx, eax
je 0x40edf3
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 0x40edb6
xor eax, eax
jmp 0x40ee35
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 0x40edf5
jmp 0x40edb2
xor esi, esi
cmp byte [0x47e0dd], 0
je 0x40ee12
test bl, 4
je 0x40ee12
push esi
push 0x40ee39
xor ebx, 4
call dword [sym.imp.USER32.dll_EnumWindows]
cmp ebx, 0x20
je 0x40ee26
cmp ebx, 0x40
je 0x40ee26
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40ee35
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 0x40ee75
Capabilities:
Log keystrokes

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

Function at 0x40ef03
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.Control_PanelMouse
push reloc.WSOCK32.dll_accept
mov dword [ebp - 0xc], 4
mov byte [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ef53
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push str.SwapMouseButtons
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 8], 0x31
sete al
leave
ret

Function at 0x40f0b9
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
test edi, edi
push esi
jl 0x40f145
jne 0x40f0cd
push 0
jmp 0x40f13f
mov al, byte [0x47e0dd]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x40f13e
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x40f13e
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 8]
push eax
call esi
mov eax, dword [esp + 8]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
sbb ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
fild qword [esp + 0x18]
fild qword [esp + 0x20]
fdivp st(1)
fmul qword [0x46ebc8]
call fcn.004659c6
cmp eax, edi
jb 0x40f0fc
jmp 0x40f145
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40f382
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov bl, byte [0x4754ab]
push esi
push 0x8000
push edi
mov esi, eax
call fcn.00453a4b
pop ecx
push eax
call fcn.00453954
cmp dword [esi + 8], 0xb
pop ecx
pop ecx
mov dword [ebp - 4], eax
jne 0x40f3ce
push edi
mov ecx, esi
call fcn.00411f8d
push eax
push 1
mov eax, esi
call fcn.0041202a
push eax
call fcn.004527bd
add esp, 0x10
mov dword [ebp - 8], eax
jmp 0x40f3f5
call fcn.00411fc5
push eax
push 0x46bc24
push edi
call fcn.00453195
add esp, 0xc
test bl, bl
mov dword [ebp - 8], eax
je 0x40f3f5
call fcn.00411fc5
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call fcn.00453462
cmp dword [ebp - 4], 0xffffffff
pop ecx
pop esi
pop ebx
jne 0x40f40b
push 0x4000
jmp 0x40f40e
push dword [ebp - 4]
push edi
call fcn.00453a4b
pop ecx
push eax
call fcn.00453954
mov eax, dword [ebp - 8]
pop ecx
pop ecx
leave
ret
Function at 0x411176
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
test dword [ecx], eax
mov esi, edx
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
je 0x4111b5
mov eax, dword [esi]
cmp eax, edi
jne 0x411220
push edi
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x411204
or eax, 0xffffffff
jmp 0x411220
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, edi
mov dword [esi], eax
je 0x4111d7
cmp eax, 0xffffffff
je 0x4111d7
push 1
push esi
push eax
call fcn.004110e3
add esp, 0xc
jmp 0x41121e
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40000000
push 0x46be30
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x411200
cmp eax, edi
jne 0x411204
mov dword [esi], edi
jmp 0x41121e
push 1
lea eax, [ebp + 0xc]
push eax
push dword [esi]
call fcn.004110e3
add esp, 0xc
call fcn.004110d2
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [esi]
pop edi
pop esi
leave
ret 8

Function at 0x411226
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
test byte [eax], 1
mov esi, ecx
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
je 0x411266
mov eax, dword [esi]
cmp eax, edi
jne 0x4112d0
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4112b4
or eax, 0xffffffff
jmp 0x4112d0
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, edi
mov dword [esi], eax
je 0x411287
cmp eax, 0xffffffff
je 0x411287
push 1
push esi
push eax
call fcn.004110e3
add esp, 0xc
jmp 0x4112ce
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 1
push connect
push 0x46be30
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x4112b0
cmp eax, edi
jne 0x4112b4
mov dword [esi], edi
jmp 0x4112ce
push 1
lea eax, [ebp + 8]
push eax
push dword [esi]
call fcn.004110e3
add esp, 0xc
call fcn.004110d2
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [esi]
pop edi
pop esi
leave
ret 4

Function at 0x4113ee
Capabilities:
Create thread

Disassembly:
push ecx
xor eax, eax
cmp dword [esi + 0x30], eax
jne 0x41140c
lea ecx, [esp]
push ecx
push eax
push esi
push 0x4115dc
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x30], eax
pop ecx
ret