joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40db48
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 0x40db8e
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 0x40dbd1
push ebx
push ebx
mov dword [ebp - 8], edi
call fcn.004536d7
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 0x40dbbc
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 0x40dbca
or eax, 0xffffffff
jmp 0x40dbcc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40dd2d
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 0x40dd51
test al, 0x10
je 0x40dd51
cmp byte [0x47e0dd], bl
je 0x40dd51
mov al, 1
jmp 0x40dda3
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 0x40dd76
xor al, al
jmp 0x40dda2
cmp dword [ebp + 0x10], ebx
jne 0x40dd81
push dword [ebp + 0xc]
push ebx
jmp 0x40dd91
cmp dword [ebp + 0x10], 1
push ebx
jne 0x40dd8e
push ebx
push dword [ebp + 0xc]
jmp 0x40dd92
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 0x40dda6
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 0x40ddc6
xor al, al
jmp 0x40dec9
push ebx
push edi
push esi
call fcn.0044f496
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.00451730
add eax, 0x1a
push eax
call fcn.0044f496
mov esi, 0x46b458
mov edi, eax
push esi
push edi
call fcn.0044f340
push esi
push ebx
call fcn.00451490
add esp, 0x18
test eax, eax
je 0x40de90
push str.StringFileInfo_
push edi
call fcn.0044f350
push esi
push ebx
call fcn.00451900
add esp, 0x10
test eax, eax
jne 0x40de87
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 0x40de67
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
push ebx
push 4
lea edx, [edi + 0x10]
pop ecx
call fcn.0040f5db
shr ebx, 0x10
lea edx, [edi + 0x14]
push ebx
call fcn.0040f5db
mov ebx, dword [ebp + 0x10]
add esp, 8
jmp 0x40de74
push str.04090000
push edi
call fcn.0044f350
pop ecx
pop ecx
push esi
push edi
call fcn.0044f350
push ebx
push edi
call fcn.0044f350
add esp, 0x10
jmp 0x40de90
push ebx
push edi
call fcn.0044f350
pop ecx
pop ecx
push str.DefaultLangCodepage
push ebx
call fcn.0044f2eb
test eax, eax
pop ecx
pop ecx
jne 0x40decc
mov esi, dword [ebp + 0xc]
push 8
lea eax, [edi + 0x10]
push eax
push esi
call fcn.00452150
push dword [ebp - 4]
mov byte [esi + 8], 0
call fcn.0044f500
push edi
call fcn.0044f500
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 0x40df42
push esi
push ebx
call fcn.00451490
test eax, eax
pop ecx
pop ecx
jne 0x40df19
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.00451879
add esp, 0x18
jmp 0x40df2c
push 0x200
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.00452150
add esp, 0xc
mov bl, 1
push dword [ebp - 4]
call fcn.0044f500
push edi
call fcn.0044f500
pop ecx
pop ecx
mov al, bl
jmp 0x40dec7
xor bl, bl
jmp 0x40df2e

Function at 0x40df5b
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 0x40df95
lea eax, [esp]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x40df8b
or eax, eax
jmp 0x40df95
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp]
mov esp, ebp
pop ebp
ret
Function at 0x40e137
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.0040df99
pop ecx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40e17c
test al, 0x10
je 0x40e17c
lea eax, [esp + 0x10]
push str..
push eax
call fcn.0044f350
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.00451fa3
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 0x40e24d
cmp bl, 1
jne 0x40e24d
test byte [esp + 0x118], 0x10
jne 0x40e225
lea eax, [esp + 0x360]
push eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x17], bl
call fcn.0044f340
lea eax, [esp + 0x260]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0044f350
lea eax, [esp + 0x154]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0044f350
add esp, 0x18
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 1
jne 0x40e23c
lea eax, [esp + 0x118]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40e1c9
xor bl, bl
jmp 0x40e1c9
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 0x40e23e
Function at 0x40e253
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.0040df99
pop ecx
push dword [ebp + 0xc]
lea eax, [esp + 0x334]
call fcn.0040df99
pop ecx
lea eax, [esp + 0x330]
push eax
lea eax, [esp + 0x22c]
push eax
call fcn.0040e094
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 0x40e2cd
test al, 0x10
je 0x40e2cd
lea eax, [esp + 0x228]
push edi
push eax
call fcn.0044f350
pop ecx
pop ecx
lea eax, [esp + 0x330]
push eax
call esi
cmp eax, 0xffffffff
je 0x40e2f0
test al, 0x10
je 0x40e2f0
lea eax, [esp + 0x330]
push edi
push eax
call fcn.0044f350
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.00451fa3
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 0x40e488
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp byte [esp + 0x12], 1
jne 0x40e488
test byte [esp + 0x438], 0x10
jne 0x40e463
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.0040e49b
lea eax, [esp + 0x798]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0044f340
lea eax, [esp + 0x698]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0044f350
lea eax, [esp + 0x484]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0044f350
mov eax, esi
push eax
call fcn.0040df46
add esp, 0x2c
test al, al
je 0x40e3f9
cmp byte [ebp + 0x10], 0
je 0x40e444
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 0x40e452
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp byte [ebp + 0x14], 1
lea eax, [esp + 0x120]
jne 0x40e436
cmp byte [esp + 0x13], 0
jne 0x40e41b
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x40e440
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
je 0x40e444
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40e440
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
jne 0x40e461
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x40e494
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x40e486
mov bl, 1
lea eax, [esp + 0x438]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40e34e
mov byte [esp + 0x12], al
jmp 0x40e34e
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 0x40e691
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.00451730
dec eax
add eax, esi
cmp byte [eax], 0x5c
pop ecx
jne 0x40e6aa
mov byte [eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40e720
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jne 0x40e6d4
push 0
push esi
call ebp
test eax, eax
je 0x40e6d9
mov al, 1
jmp 0x40e726
cmp eax, 3
jne 0x40e724
push esi
call fcn.0040f119
mov edi, eax
push 0x5c
push edi
call fcn.004535b0
add esp, 0xc
test eax, eax
jne 0x40e6f9
push edi
call fcn.0044f500
pop ecx
jmp 0x40e724
push ebx
push edi
mov byte [eax], 0
call fcn.0040e691
push edi
mov bl, al
call fcn.0044f500
test bl, bl
pop ecx
pop ecx
je 0x40e71b
push 0
push esi
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x40e726
test al, 0x10
jne 0x40e6d0
xor al, al
pop edi
pop esi
pop ebp
ret

Function at 0x40e72a
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.0040df99
push dword [ebp + 0xc]
lea eax, [ebp - 0x128]
call fcn.0040df99
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 0x40e7a3
cmp byte [ebp + 0x10], al
je 0x40e79f
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00451490
test eax, eax
pop ecx
pop ecx
je 0x40e79b
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 0x40e7bc
test al, 0x10
jne 0x40e7c3
xor al, al
jmp 0x40e87a
push ebx
lea eax, [ebp - 0x128]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40e7dd
test al, 0x10
je 0x40e7dd
cmp byte [ebp + 0x10], bl
jmp 0x40e7fe
lea eax, [ebp - 0x128]
push eax
call fcn.0040e691
test al, al
pop ecx
je 0x40e800
lea eax, [ebp - 0x128]
push eax
call esi
cmp eax, 0xffffffff
je 0x40e800
test al, 0x10
jne 0x40e804
xor al, al
jmp 0x40e879
lea eax, [ebp - 0x230]
push str..
push eax
call fcn.0044f350
lea eax, [ebp - 0x230]
push eax
call fcn.00451730
mov byte [ebp + eax - 0x22f], bl
lea eax, [ebp - 0x128]
push eax
call fcn.00451730
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 0x40e87d
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.0040df99
push dword [ebp + 0xc]
lea eax, [ebp - 0x12c]
call fcn.0040df99
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop ecx
pop ecx
lea eax, [ebp - 0x234]
push eax
call esi
cmp eax, 0xffffffff
je 0x40e8bd
test al, 0x10
jne 0x40e8c4
xor al, al
jmp 0x40ea6c
push ebx
lea eax, [ebp - 0x12c]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40e9b8
test al, 0x10
je 0x40e9b8
cmp byte [ebp + 0x10], bl
je 0x40e9ed
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40e93d
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00451490
test eax, eax
pop ecx
pop ecx
je 0x40e936
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jmp 0x40ea03
mov al, 1
jmp 0x40ea6b
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.00451fa3
lea eax, [ebp - 0x12c]
push 0x46b458
push eax
call fcn.0044f350
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.0044f350
add esp, 0x24
cmp byte [ebp - 0x338], bl
je 0x40e9b8
lea eax, [ebp - 0x12c]
push 0x46bb48
push eax
call fcn.0044f350
lea eax, [ebp - 0x338]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.0044f350
add esp, 0x10
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0040e094
test al, al
pop ecx
pop ecx
je 0x40ea08
push 1
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0040e72a
add esp, 0xc
test al, al
jne 0x40e9f1
xor al, al
jmp 0x40ea6b
lea eax, [ebp - 0x234]
push 1
push eax
call fcn.0040ea6f
pop ecx
pop ecx
test al, al
setne al
jmp 0x40ea6b
lea eax, [ebp - 0x234]
push eax
call fcn.00451730
mov byte [ebp + eax - 0x233], bl
lea eax, [ebp - 0x12c]
push eax
call fcn.00451730
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 0x40ea6f
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.0040df99
pop ecx
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40ea9d
test al, 0x10
jne 0x40eaa1
xor al, al
leave
ret
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
lea eax, [ebp - 0x128]
push eax
jne 0x40eabd
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne al
jmp 0x40eaff
call fcn.00451730
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 0x40ebb3
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 0x40ec3d
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 0x40ec3d
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x40ec06
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x40ebfd
cmp esi, edx
jle 0x40ec11
push str.0.0.0.0
jmp 0x40ec2c
push 4
push dword [eax + esi*4 - 4]
lea eax, [ebp - 8]
push eax
call fcn.0044f8c0
add esp, 0xc
push dword [ebp - 8]
call sub.WSOCK32.dll_inet_ntoa
push eax
push dword [ebp + 8]
call fcn.0044f340
pop ecx
pop ecx
call sub.WSOCK32.dll_WSACleanup
leave
ret
push 0x46ad3e
push dword [ebp + 8]
call fcn.0044f340
pop ecx
pop ecx
leave
ret

Function at 0x40ed57
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 0x40edc2
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 0x40ed85
xor eax, eax
jmp 0x40ee04
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 0x40edc4
jmp 0x40ed81
xor esi, esi
cmp byte [0x47e0dd], 0
je 0x40ede1
test bl, 4
je 0x40ede1
push esi
push 0x40ee08
xor ebx, 4
call dword [sym.imp.USER32.dll_EnumWindows]
cmp ebx, 0x20
je 0x40edf5
cmp ebx, 0x40
je 0x40edf5
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40ee04
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 0x40ee44
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
jne 0x40ee5d
push dword [esp + 4]
call fcn.0040ee1f
test al, al
pop ecx
jne 0x40ee79
push 1
jmp 0x40ee5f
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 0x40eed2
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 0x40ef22
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 0x40f088
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 0x40f114
jne 0x40f09c
push 0
jmp 0x40f10e
mov al, byte [0x47e0dd]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x40f10d
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x40f10d
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.004659a6
cmp eax, edi
jb 0x40f0cb
jmp 0x40f114
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40f351
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.00453a2b
pop ecx
push eax
call fcn.00453934
cmp dword [esi + 8], 0xb
pop ecx
pop ecx
mov dword [ebp - 4], eax
jne 0x40f39d
push edi
mov ecx, esi
call fcn.00411f5c
push eax
push 1
mov eax, esi
call fcn.00411ff9
push eax
call fcn.0045279d
add esp, 0x10
mov dword [ebp - 8], eax
jmp 0x40f3c4
call fcn.00411f94
push eax
push 0x46bc24
push edi
call fcn.00453175
add esp, 0xc
test bl, bl
mov dword [ebp - 8], eax
je 0x40f3c4
call fcn.00411f94
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call fcn.00453442
cmp dword [ebp - 4], 0xffffffff
pop ecx
pop esi
pop ebx
jne 0x40f3da
push 0x4000
jmp 0x40f3dd
push dword [ebp - 4]
push edi
call fcn.00453a2b
pop ecx
push eax
call fcn.00453934
mov eax, dword [ebp - 8]
pop ecx
pop ecx
leave
ret
Function at 0x411145
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 0x411184
mov eax, dword [esi]
cmp eax, edi
jne 0x4111ef
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 0x4111d3
or eax, 0xffffffff
jmp 0x4111ef
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, edi
mov dword [esi], eax
je 0x4111a6
cmp eax, 0xffffffff
je 0x4111a6
push 1
push esi
push eax
call fcn.004110b2
add esp, 0xc
jmp 0x4111ed
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 0x4111cf
cmp eax, edi
jne 0x4111d3
mov dword [esi], edi
jmp 0x4111ed
push 1
lea eax, [ebp + 0xc]
push eax
push dword [esi]
call fcn.004110b2
add esp, 0xc
call fcn.004110a1
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [esi]
pop edi
pop esi
leave
ret 8

Function at 0x4111f5
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 0x411235
mov eax, dword [esi]
cmp eax, edi
jne 0x41129f
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 0x411283
or eax, 0xffffffff
jmp 0x41129f
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, edi
mov dword [esi], eax
je 0x411256
cmp eax, 0xffffffff
je 0x411256
push 1
push esi
push eax
call fcn.004110b2
add esp, 0xc
jmp 0x41129d
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 0x41127f
cmp eax, edi
jne 0x411283
mov dword [esi], edi
jmp 0x41129d
push 1
lea eax, [ebp + 8]
push eax
push dword [esi]
call fcn.004110b2
add esp, 0xc
call fcn.004110a1
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [esi]
pop edi
pop esi
leave
ret 4

Function at 0x4113bd
Capabilities:
Create thread

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