joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bc8c
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
push edi
mov eax, 0x5c41cc
call fcn.00496b84
mov dword [ebp - 0x1c], 1
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.004a44c4
inc dword [ebp - 0x1c]
mov word [ebp - 0x28], 8
mov word [ebp - 0x28], 0x14
lea eax, [ebp - 4]
call fcn.00401ab4
inc dword [ebp - 0x1c]
mov word [ebp - 0x28], 8
push 0x105
lea edx, [ebp - 0x144]
push edx
call sub.KERNEL32.DLL_GetSystemDirectoryA
mov word [ebp - 0x28], 0x20
lea eax, [ebp - 0x10]
call fcn.00401ab4
push eax
inc dword [ebp - 0x1c]
mov edx, str._reg_ent.reg
lea eax, [ebp - 0xc]
call fcn.004a448c
inc dword [ebp - 0x1c]
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x144]
lea eax, [ebp - 8]
call fcn.004a448c
inc dword [ebp - 0x1c]
pop edx
pop ecx
call fcn.004a4688
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.004a4660
dec dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004a4630
dec dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a4630
dec dword [ebp - 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a4630
mov dl, 1
mov eax, dword [0x480f34]
call fcn.0040358c
mov dword [ebp - 0x3c], eax
mov word [ebp - 0x28], 8
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov word [ebp - 0x28], 0x2c
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov word [ebp - 0x28], 8
jmp 0x40bddc
push 0
mov word [ebp - 0x28], 0x38
lea eax, [ebp - 0x14]
call fcn.00401ab4
mov ecx, eax
inc dword [ebp - 0x1c]
lea edx, [ebp - 4]
mov eax, str.regedit.exe__s
call fcn.004a4a70
lea eax, [ebp - 0x14]
call fcn.00401ae4
push eax
call sub.KERNEL32.DLL_WinExec
cmp eax, 0x20
setg dl
and edx, 1
push edx
dec dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004a4630
pop ecx
test cl, cl
je 0x40be5b
mov al, 1
push eax
dec dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4630
dec dword [ebp - 0x1c]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a4630
pop eax
mov edx, dword [ebp - 0x38]
mov dword fs:[0], edx
jmp 0x40be89
xor eax, eax
push eax
dec dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4630
dec dword [ebp - 0x1c]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a4630
pop eax
mov edx, dword [ebp - 0x38]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c14c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff5c
push 0x9c
push 0
lea eax, [ebp - 0xa4]
push eax
call fcn.0049666c
add esp, 0xc
mov dword [ebp - 0xa4], 0x9c
lea edx, [ebp - 0xa4]
push edx
call sub.KERNEL32.DLL_GetVersionExA
mov dword [ebp - 8], eax
test eax, eax
jne 0x40c1aa
mov dword [ebp - 0xa4], 0x94
lea edx, [ebp - 0xa4]
push edx
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
jne 0x40c1aa
mov eax, dword [ebp - 4]
jmp 0x40c25d
mov edx, dword [ebp - 0x94]
sub edx, 1
jb 0x40c253
je 0x40c206
dec edx
jne 0x40c25a
cmp dword [ebp - 0xa0], 4
ja 0x40c1d2
mov dword [ebp - 4], str.Microsoft_Windows_NT
cmp dword [ebp - 0xa0], 5
jne 0x40c1eb
cmp dword [ebp - 0x9c], 0
jne 0x40c1eb
mov dword [ebp - 4], str.Microsoft_Windows_2000
cmp dword [ebp - 0xa0], 5
jne 0x40c25a
cmp dword [ebp - 0x9c], 1
jne 0x40c25a
mov dword [ebp - 4], str.Microsoft_Windows_XP
jmp 0x40c25a
cmp dword [ebp - 0xa0], 4
jne 0x40c21f
cmp dword [ebp - 0x9c], 0
jne 0x40c21f
mov dword [ebp - 4], str.Microsoft_Windows_95
cmp dword [ebp - 0xa0], 4
jne 0x40c238
cmp dword [ebp - 0x9c], 0xa
jne 0x40c238
mov dword [ebp - 4], str.Microsoft_Windows_98
cmp dword [ebp - 0xa0], 4
jne 0x40c25a
cmp dword [ebp - 0x9c], 0x5a
jne 0x40c25a
mov dword [ebp - 4], str.Microsoft_Windows_Me
jmp 0x40c25a
mov dword [ebp - 4], str.Microsoft_Win32s
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40c644
Capabilities:
Create process on windows
Create process suspended
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff74
mov eax, 0x5c454c
call fcn.00496b84
mov dword [ebp - 0x14], 2
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.004a44c4
inc dword [ebp - 0x14]
mov word [ebp - 0x20], 8
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.004a44c4
inc dword [ebp - 0x14]
mov byte [ebp - 0x31], 0xeb
mov byte [ebp - 0x32], 8
mov dword [ebp - 0x8c], 0x44
xor edx, edx
mov dword [ebp - 0x88], edx
xor ecx, ecx
mov dword [ebp - 0x84], ecx
xor eax, eax
mov dword [ebp - 0x80], eax
xor edx, edx
mov dword [ebp - 0x60], edx
mov word [ebp - 0x5a], 0
xor ecx, ecx
mov dword [ebp - 0x58], ecx
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0x8c]
push edx
push 0
push 0
push 4
push 0
push 0
push 0
mov word [ebp - 0x20], 0x14
lea eax, [ebp - 8]
call fcn.00401ab4
push eax
inc dword [ebp - 0x14]
mov edx, 0x5bcd84
lea eax, [ebp - 4]
call fcn.004a448c
inc dword [ebp - 0x14]
lea edx, [ebp - 4]
lea eax, [ebp + 8]
pop ecx
call fcn.004a4688
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
call fcn.00401ab4
mov ecx, eax
inc dword [ebp - 0x14]
lea edx, [ebp + 0xc]
pop eax
call fcn.004a4688
lea eax, [ebp - 0xc]
call fcn.00401ae4
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
push eax
dec dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a4630
dec dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a4630
dec dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4630
pop ecx
test ecx, ecx
je 0x40c7a0
lea eax, [ebp - 0x38]
push eax
push 1
lea edx, [ebp - 0x31]
push edx
push dword [ebp + 0x10]
push dword [ebp - 0x48]
call sub.KERNEL32.DLL_WriteProcessMemory
lea ecx, [ebp - 0x38]
push ecx
push 1
lea eax, [ebp - 0x32]
push eax
mov edx, dword [ebp + 0x10]
inc edx
push edx
push dword [ebp - 0x48]
call sub.KERNEL32.DLL_WriteProcessMemory
push dword [ebp - 0x44]
call sub.KERNEL32.DLL_ResumeThread
push dword [ebp - 0x48]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x44]
call sub.KERNEL32.DLL_CloseHandle
dec dword [ebp - 0x14]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a4630
dec dword [ebp - 0x14]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004a4630
mov ecx, dword [ebp - 0x30]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40ccf0
Capabilities:
Create pipe
Create process on windows
Create process suspended
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0xf4
add esp, 0xfffff004
push eax
dec eax
jne 0x40ccf9
mov eax, dword [ebp - 4]
add esp, 0xfffff928
push ebx
push esi
push edi
mov eax, 0x5c47f0
call fcn.00496b84
mov dword [ebp - 0x14], 1
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.004a44c4
inc dword [ebp - 0x14]
mov word [ebp - 0x20], 8
mov word [ebp - 0x20], 0x14
mov word [ebp - 0x20], 0x20
lea eax, [ebp - 4]
call fcn.00401ab4
inc dword [ebp - 0x14]
mov word [ebp - 0x20], 0x2c
push 0xc
push 0
lea edx, [ebp - 0x48]
push edx
call fcn.0049666c
add esp, 0xc
mov dword [ebp - 0x48], 0xc
mov dword [ebp - 0x40], 1
push 0
lea ecx, [ebp - 0x48]
push ecx
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp - 0x34]
push edx
call sub.KERNEL32.DLL_CreatePipe
push 0x44
push 0
lea ecx, [ebp - 0x8c]
push ecx
call fcn.0049666c
add esp, 0xc
push 0x10
push 0
lea eax, [ebp - 0x9c]
push eax
call fcn.0049666c
add esp, 0xc
mov dword [ebp - 0x8c], 0x44
mov dword [ebp - 0x60], 0x100
xor edx, edx
mov dword [ebp - 0x54], edx
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
lea eax, [ebp + 0xc]
call fcn.00401ae4
push eax
lea edx, [ebp - 0x49c]
push edx
call fcn.004967ec
add esp, 8
lea ecx, [ebp - 0x9c]
push ecx
lea eax, [ebp - 0x8c]
push eax
push 0
push 0
push 0x8000020
push 1
push 0
push 0
lea edx, [ebp - 0x49c]
push edx
push 0
call sub.KERNEL32.DLL_CreateProcessA
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_CloseHandle
mov esi, 0x4c6869
lea edi, [ebp - 0xf46dc]
mov ecx, 0x3d090
rep movsd dword es:[edi], dword [esi]
push 0
lea eax, [ebp - 0x3c]
push eax
push 0xf4240
lea edx, [ebp - 0xf46dc]
push edx
push dword [ebp - 0x34]
call sub.KERNEL32.DLL_ReadFile
mov word [ebp - 0x20], 0x38
lea edx, [ebp - 0xf46dc]
lea eax, [ebp - 8]
call fcn.004a448c
inc dword [ebp - 0x14]
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.004a4660
dec dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a4630
push 0x5bcdcf
lea ecx, [ebp - 0xf46dc]
push ecx
call fcn.004967ec
add esp, 8
push dword [ebp - 0x34]
call sub.KERNEL32.DLL_CloseHandle
push 0xffffffffffffffff
push dword [ebp - 0x9c]
call sub.KERNEL32.DLL_WaitForSingleObject
push 0xffffffffffffffff
push dword [ebp - 0x98]
call sub.KERNEL32.DLL_WaitForSingleObject
push dword [ebp - 0x98]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x9c]
call sub.KERNEL32.DLL_CloseHandle
mov word [ebp - 0x20], 0x44
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.004a4660
mov eax, dword [ebp + 8]
mov word [ebp - 0x20], 0x50
push eax
dec dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4630
dec dword [ebp - 0x14]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004a4630
pop eax
mov word [ebp - 0x20], 0x2c
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x40cf83
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cf8c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
push ebx
push esi
push edi
mov eax, 0x5c48f4
call fcn.00496b84
push 0x104
lea edx, [ebp - 0x14c]
push edx
call sub.KERNEL32.DLL_GetSystemDirectoryA
push 0x5bcddc
mov word [ebp - 0x2c], 8
lea eax, [ebp - 0xc]
call fcn.00401ab4
push eax
inc dword [ebp - 0x20]
mov edx, 0x5bcdd0
lea eax, [ebp - 8]
call fcn.004a448c
inc dword [ebp - 0x20]
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 0x14c]
lea eax, [ebp - 4]
call fcn.004a448c
inc dword [ebp - 0x20]
pop edx
pop ecx
call fcn.004a4688
lea eax, [ebp - 0xc]
call fcn.00401ae4
push eax
call fcn.00498634
add esp, 8
mov dword [ebp - 0x40], eax
test eax, eax
setne dl
and edx, 1
push edx
dec dword [ebp - 0x20]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a4630
dec dword [ebp - 0x20]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a4630
dec dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4630
pop ecx
test cl, cl
je 0x40d093
xor eax, eax
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x40]
inc dword [edx + 8]
jns 0x40d069
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx]
inc dword [ecx]
mov edx, dword [ebp - 0x44]
mov cl, byte [edx + 0x4bd40e]
mov byte [eax], cl
jmp 0x40d07e
push dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
mov dl, byte [eax + 0x4bd40e]
push edx
call fcn.0049815c
add esp, 8
inc dword [ebp - 0x44]
cmp dword [ebp - 0x44], 0x4200
jl 0x40d04d
push dword [ebp - 0x40]
call fcn.004982cc
pop ecx
lea ecx, [ebp - 0x14c]
push ecx
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov word [ebp - 0x2c], 0x14
mov word [ebp - 0x2c], 0x20
lea eax, [ebp - 0x18]
call fcn.00401ab4
push eax
inc dword [ebp - 0x20]
mov edx, str.winkey.dll
lea eax, [ebp - 0x14]
call fcn.004a448c
inc dword [ebp - 0x20]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x14c]
lea eax, [ebp - 0x10]
call fcn.004a448c
inc dword [ebp - 0x20]
pop edx
pop ecx
call fcn.004a4688
lea eax, [ebp - 0x18]
call fcn.00401ae4
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x5d54fc], eax
dec dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004a4630
dec dword [ebp - 0x20]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004a4630
dec dword [ebp - 0x20]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004a4630
cmp dword [0x5d54fc], 0
je 0x40d15e
push str.installhook
push dword [0x5d54fc]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x48], eax
mov word [ebp - 0x2c], 0x2c
call dword [ebp - 0x48]
mov word [ebp - 0x2c], 0x14
jmp 0x40d15e
mov word [ebp - 0x2c], 0
jmp 0x40d171
mov ecx, dword [ebp - 0x3c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d184
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
push ebx
push esi
push edi
mov eax, 0x5c49bc
call fcn.00496b84
push 0x104
lea edx, [ebp - 0x14c]
push edx
call sub.KERNEL32.DLL_GetSystemDirectoryA
push 0x5bce03
mov word [ebp - 0x2c], 8
lea eax, [ebp - 0xc]
call fcn.00401ab4
push eax
inc dword [ebp - 0x20]
mov edx, 0x5bcdf7
lea eax, [ebp - 8]
call fcn.004a448c
inc dword [ebp - 0x20]
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 0x14c]
lea eax, [ebp - 4]
call fcn.004a448c
inc dword [ebp - 0x20]
pop edx
pop ecx
call fcn.004a4688
lea eax, [ebp - 0xc]
call fcn.00401ae4
push eax
call fcn.00498634
add esp, 8
mov dword [ebp - 0x40], eax
test eax, eax
setne dl
and edx, 1
push edx
dec dword [ebp - 0x20]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a4630
dec dword [ebp - 0x20]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a4630
dec dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4630
pop ecx
test cl, cl
je 0x40d28b
xor eax, eax
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x40]
inc dword [edx + 8]
jns 0x40d261
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx]
inc dword [ecx]
mov edx, dword [ebp - 0x44]
mov cl, byte [edx + 0x4c161e]
mov byte [eax], cl
jmp 0x40d276
push dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
mov dl, byte [eax + 0x4c161e]
push edx
call fcn.0049815c
add esp, 8
inc dword [ebp - 0x44]
cmp dword [ebp - 0x44], 0x5200
jl 0x40d245
push dword [ebp - 0x40]
call fcn.004982cc
pop ecx
lea ecx, [ebp - 0x14c]
push ecx
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov word [ebp - 0x2c], 0x14
mov word [ebp - 0x2c], 0x20
lea eax, [ebp - 0x18]
call fcn.00401ab4
push eax
inc dword [ebp - 0x20]
mov edx, 0x5bce06
lea eax, [ebp - 0x14]
call fcn.004a448c
inc dword [ebp - 0x20]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x14c]
lea eax, [ebp - 0x10]
call fcn.004a448c
inc dword [ebp - 0x20]
pop edx
pop ecx
call fcn.004a4688
lea eax, [ebp - 0x18]
call fcn.00401ae4
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x5d5500], eax
dec dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004a4630
dec dword [ebp - 0x20]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004a4630
dec dword [ebp - 0x20]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004a4630
cmp dword [0x5d5500], 0
je 0x40d356
push str.InstallHook
push dword [0x5d5500]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x48], eax
mov word [ebp - 0x2c], 0x2c
call dword [ebp - 0x48]
mov word [ebp - 0x2c], 0x14
jmp 0x40d356
mov word [ebp - 0x2c], 0
jmp 0x40d369
mov ecx, dword [ebp - 0x3c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d4f4
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov eax, 0x5c4ac4
call fcn.00496b84
mov word [ebp - 0x14], 8
push 0xffffffffffffffff
call sub.KERNEL32.DLL_SetLastError
push 1
call sub.KERNEL32.DLL_SetErrorMode
push 0
push 0
push 0
push 0
push dword [ebp + 8]
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0xffffffff
jne 0x40d543
mov al, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40d571
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40d571
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d578
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb10
mov eax, 0x5c4b48
call fcn.00496b84
mov dl, 1
mov eax, dword [0x480f34]
call fcn.0040358c
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
call dword [edx + pe_nt_image_headers32]
mov word [ebp - 0x28], 8
lea eax, [ebp - 4]
call fcn.00401ab4
inc dword [ebp - 0x1c]
mov word [ebp - 0x28], 0x14
push 0
push 0
call sub.USER32.DLL_FindWindowA
mov dword [ebp - 0x40], eax
push 2
push dword [ebp - 0x40]
call sub.USER32.DLL_GetWindow
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x40d684
push 0x4b0
lea edx, [ebp - 0x4f0]
push edx
push dword [ebp - 0x40]
call sub.USER32.DLL_GetWindowTextA
push dword [ebp - 0x40]
call sub.USER32.DLL_IsWindowVisible
test eax, eax
jne 0x40d602
cmp byte [ebp + 0xc], 0
je 0x40d5c5
push 0x5bce55
lea ecx, [ebp - 0x4f0]
push ecx
call fcn.004967a0
add esp, 8
test eax, eax
je 0x40d5c5
push 0x5bce56
lea eax, [ebp - 0x4f0]
push eax
call fcn.004967a0
add esp, 8
test eax, eax
je 0x40d5c5
push 0x5bce6a
lea edx, [ebp - 0x4f0]
push edx
call fcn.004967a0
add esp, 8
test eax, eax
je 0x40d5c5
mov word [ebp - 0x28], 0x20
lea edx, [ebp - 0x4f0]
lea eax, [ebp - 8]
call fcn.004a448c
inc dword [ebp - 0x1c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x34]
dec dword [ebp - 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a4630
jmp 0x40d5c5
mov word [ebp - 0x28], 0x2c
lea eax, [ebp - 0xc]
call fcn.00401ab4
mov edx, eax
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.004a4660
dec dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a4630
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
je 0x40d6e7
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov dword [ebp - 0x10], edx
mov word [ebp - 0x28], 0x44
mov edx, 3
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x28], 0x38
mov word [ebp - 0x28], 0x50
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.004a4660
mov eax, dword [ebp + 8]
mov word [ebp - 0x28], 0x5c
push eax
dec dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4630
pop eax
mov word [ebp - 0x28], 0x50
inc dword [ebp - 0x1c]
mov edx, dword [ebp - 0x38]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x40d72c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov eax, 0x5c4be0
call fcn.00496b84
mov dword [ebp - 8], 1
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.004a44c4
inc dword [ebp - 8]
mov word [ebp - 0x14], 8
mov word [ebp - 0x14], 0x14
lea eax, [ebp + 8]
call fcn.00401ae4
push eax
push 0
call sub.USER32.DLL_FindWindowA
mov dword [ebp - 0x2c], eax
mov word [ebp - 0x14], 0x14
cmp dword [ebp - 0x2c], 0
jne 0x40d7a2
xor eax, eax
push eax
dec dword [ebp - 8]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a4630
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40d83b
lea ecx, [ebp - 0x28]
push ecx
push dword [ebp - 0x2c]
call sub.USER32.DLL_GetWindowThreadProcessId
push 0
push dword [ebp - 0x28]
push 0
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
push eax
call sub.KERNEL32.DLL_TerminateProcess
test eax, eax
je 0x40d7e9
mov al, 1
push eax
dec dword [ebp - 8]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a4630
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40d83b
xor eax, eax
push eax
dec dword [ebp - 8]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a4630
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40d83b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d844
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov eax, 0x5c4c10
call fcn.00496b84
mov dword [ebp - 8], 1
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.004a44c4
inc dword [ebp - 8]
mov word [ebp - 0x14], 8
lea eax, [ebp + 8]
call fcn.00401ae4
push eax
push 0
call sub.USER32.DLL_FindWindowA
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x40d8a8
xor eax, eax
push eax
dec dword [ebp - 8]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a4630
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40d8f4
push 0
push dword [ebp - 0x28]
call sub.USER32.DLL_ShowWindow
test eax, eax
je 0x40d8d6
mov al, 1
push eax
dec dword [ebp - 8]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a4630
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40d8f4
xor eax, eax
push eax
dec dword [ebp - 8]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a4630
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x40dc18
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
mov eax, 0x5c4d34
call fcn.00496b84
mov dl, 1
mov eax, dword [0x480f34]
call fcn.0040358c
mov dword [ebp - 0x40], eax
mov word [ebp - 0x2c], 8
lea eax, [ebp - 4]
call fcn.00401ab4
inc dword [ebp - 0x20]
mov word [ebp - 0x2c], 0x14
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
call dword [edx + pe_nt_image_headers32]
xor ecx, ecx
mov dword [ebp - 0x48], ecx
lea eax, [ebp - 0x1d8]
push eax
push 0x202
call sub.WSOCK32.DLL_WSAStartup
test eax, eax
jne 0x40dd17
push pe_nt_image_headers32
lea edx, [ebp - 0x218]
push edx
call sub.WSOCK32.DLL_gethostname
test eax, eax
jne 0x40dd47
lea ecx, [ebp - 0x218]
push ecx
call sub.WSOCK32.DLL_gethostbyname
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x40dd47
jmp 0x40dd06
mov eax, dword [ebp - 0x44]
movsx edx, word [eax + 0xa]
push edx
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx + 0xc]
mov edx, dword [ebp - 0x48]
push dword [eax + edx*4]
lea ecx, [ebp - 0x224]
push ecx
call fcn.004965fc
add esp, 0xc
mov word [ebp - 0x2c], 0x20
push dword [ebp - 0x224]
call sub.WSOCK32.DLL_inet_ntoa
mov edx, eax
lea eax, [ebp - 8]
call fcn.004a448c
inc dword [ebp - 0x20]
mov edx, dword [eax]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x34]
dec dword [ebp - 0x20]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a4630
inc dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx + 0xc]
mov edx, dword [ebp - 0x48]
cmp dword [eax + edx*4], 0
jne 0x40dca8
jmp 0x40dd47
mov word [ebp - 0x2c], 0x2c
mov edx, 0x5bce7d
lea eax, [ebp - 0xc]
call fcn.004a448c
inc dword [ebp - 0x20]
mov edx, dword [eax]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x34]
dec dword [ebp - 0x20]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a4630
mov word [ebp - 0x2c], 0x38
lea eax, [ebp - 0x10]
call fcn.00401ab4
mov edx, eax
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.004a4660
dec dword [ebp - 0x20]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004a4630
call sub.WSOCK32.DLL_WSACleanup
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
je 0x40ddaf
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
mov word [ebp - 0x2c], 0x50
mov edx, 3
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x2c], 0x44
mov word [ebp - 0x2c], 0x5c
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.004a4660
mov eax, dword [ebp + 8]
mov word [ebp - 0x2c], 0x68
push eax
dec dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4630
pop eax
mov word [ebp - 0x2c], 0x5c
inc dword [ebp - 0x20]
mov edx, dword [ebp - 0x3c]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret