joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4095e9
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push VariantCopy
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x409631
mov eax, 0x42e37c
push eax
push 1
mov ebx, 0x194
call fcn.00410f30
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 8
jge 0x409656
jmp 0x40975b
push dword [ebp + 8]
call fcn.004029e6
mov dword [ebp - 8], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fadd qword [0x44e46b]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.004010cb
push eax
push 0x40
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
nop
nop
mov dword [ebp - 0xc], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fsub qword [0x44e46b]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.004010cb
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x40974b
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.00409761
mov word [ebp - 0x14], ax
cmp word [ebp - 0x14], 0x2f
jne 0x4096e1
mov word [ebp - 0x14], 0x5c
cmp word [ebp - 0x14], 0
jne 0x409708
push 0
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
nop
jmp 0x40974b
cmp word [ebp - 0x14], 0x5c
jne 0x409732
cmp dword [ebp - 0x18], 0
jle 0x40972f
push 0
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
nop
inc dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.00409784
pop ebx
pop ecx
pop edx
add ecx, 2
jmp 0x4096b4
add esp, 0xc
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
mov esp, ebp
pop ebp
ret 4

Function at 0x4109f0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x410a0e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x410a03
pop esi
ret
Function at 0x410a50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
call fcn.00414380
mov edi, dword [esp + 0x38]
xor ebp, ebp
push edi
mov ebx, eax
mov dword [esp + 0x18], ebp
call dword [0x453dc8]
add esp, 8
test ebx, ebx
je 0x410b94
test eax, eax
je 0x410b94
inc eax
push eax
call fcn.0042058e
mov ebp, eax
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004153d0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x410ac2
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x410b81
push 0x400
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x1c], 1
call fcn.0042058e
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0x410b4a
cmp eax, 0xea
jne 0x410b6d
push esi
call fcn.004205b7
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0042058e
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0x410b15
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x410b58
cmp eax, 2
jne 0x410b6d
push esi
call dword [0x453dc8]
push eax
push esi
call fcn.00414250
add esp, 0xc
mov dword [esp + 0x10], eax
push esi
call fcn.004205b7
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.004205b7
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x410bbd
mov ebp, eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x410bc9
mov esi, dword [esp + 0x40]
test esi, esi
je 0x410bc9
push esi
call dword [0x453dc8]
push eax
push esi
call fcn.00414250
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x410db0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x154]
xor ebp, ebp
test edi, edi
je 0x410e30
push edi
call dword [0x453dc8]
add esp, 4
test eax, eax
jbe 0x410e30
test esi, esi
je 0x410dee
cmp esi, 0xffffffff
je 0x410dee
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebx], esi
je 0x410e72
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x410e1c
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
je 0x410e30
jmp 0x410e2b
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x10]
test edx, eax
je 0x410e30
mov ebp, 1
test esi, esi
je 0x410e72
cmp esi, 0xffffffff
je 0x410e72
test ebp, ebp
jne 0x410ea9
mov eax, dword [esp + 0x15c]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x10]
push eax
push esi
je 0x410e7f
call edi
test eax, eax
je 0x410e72
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
jne 0x410ea9
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x410e5a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
call edi
test eax, eax
je 0x410e72
mov ebx, dword [esp + 0x158]
test dword [esp + 0x10], ebx
jne 0x410ea9
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x410e8c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
lea edx, [esp + 0x3c]
push edx
call dword [0x453dc8]
inc eax
push eax
call fcn.0040f840
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
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
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret

Function at 0x410f10
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret
Function at 0x4136d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x4136f1
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x41374b
inc edi
cmp edi, esi
jl 0x4136e5
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x413780
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x41373a
cmp byte [eax], bl
je 0x413755
cmp byte [eax + 1], bl
je 0x41375e
cmp byte [eax + 2], bl
je 0x413768
cmp byte [eax + 3], bl
je 0x413774
add eax, 4
cmp eax, edi
jb 0x413711
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4

Function at 0x413ba0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x11c]
lea eax, [esp + 0x18]
mov ebx, edi
xor esi, esi
xor ecx, ecx
sub ebx, eax
mov eax, ecx
lea ebp, [esp + ecx + 0x18]
cdq
idiv dword [esp + 0x124]
mov eax, dword [esp + 0x120]
mov byte [ebx + ebp], cl
inc ecx
cmp ecx, 0x100
mov dl, byte [edx + eax]
mov byte [ebp], dl
jl 0x413bd2
lea ebp, [esp + 0x18]
mov eax, edi
sub ebp, edi
mov dword [esp + 0x10], 0x100
mov cl, byte [eax]
xor edx, edx
mov dl, byte [eax + ebp]
mov byte [esp + 0x14], cl
mov ebx, dword [esp + 0x14]
add esi, edx
and ebx, 0xff
add esi, ebx
and esi, 0x800000ff
jns 0x413c32
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esi + edi]
mov byte [eax], dl
mov byte [esi + edi], cl
mov ecx, dword [esp + 0x10]
inc eax
dec ecx
mov dword [esp + 0x10], ecx
jne 0x413c09
xor al, al
mov byte [edi + 0x100], al
mov byte [edi + 0x101], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x413ce0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
xor esi, esi
mov byte [esp + 0x18], cl
test edi, edi
mov byte [esp + 8], dl
jle 0x413d7c
mov edx, dword [esp + 0x10]
push ebx
push ebp
mov cl, byte [esp + 0x20]
mov bl, byte [esp + 0x10]
inc cl
mov byte [esp + 0x20], cl
mov ecx, dword [esp + 0x20]
and ecx, 0xff
lea edi, [ecx + eax]
mov cl, byte [ecx + eax]
add bl, cl
mov byte [esp + 0x10], bl
mov ebx, dword [esp + 0x10]
and ebx, 0xff
lea ebp, [ebx + eax]
mov bl, byte [ebx + eax]
mov byte [edi], bl
mov byte [ebp], cl
mov bl, byte [edi]
add bl, cl
and ebx, 0xff
mov cl, byte [ebx + eax]
mov bl, byte [esi + edx]
xor bl, cl
mov ecx, dword [esp + 0x1c]
mov byte [esi + edx], bl
inc esi
cmp esi, ecx
jl 0x413d0b
mov dl, byte [esp + 0x20]
mov cl, byte [esp + 0x10]
pop ebp
pop ebx
pop edi
mov byte [eax + 0x100], dl
mov byte [eax + 0x101], cl
pop esi
pop ecx
ret
pop edi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop esi
pop ecx
ret

Function at 0x422f58
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x422f9a
call fcn.004262b0
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x422f9a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x422f91
xor eax, eax
jmp 0x422fa2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00422fa8
pop edi
pop esi
pop ebx
ret 4
Function at 0x423f36
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x427b44
call fcn.00416330
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004262b0
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x423f75
call fcn.004262b0
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x423f83
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x423f91
or eax, 0xffffffff
jmp 0x424079
mov ecx, esi
call fcn.00423eac
mov dword [ebp - 0x14], eax
call fcn.004215a3
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x423fc8
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x423fc8
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00421557
push dword [ebp - 0x14]
call fcn.00421089
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00423c44
cmp eax, edi
je 0x42403b
test byte [esi + 0x24], 0x10
je 0x424009
push 4
mov ecx, esi
pop ebx
call fcn.00420a89
test ah, 1
je 0x424001
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004230aa
cmp dword [esi + 0x1c], edi
je 0x42403b
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00420abd
jmp 0x42403b
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x42404f
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x424068
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x424068
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00423ee6
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x425e22
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x425e50
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x425e6e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00425d88
jmp 0x425e6e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x425e6e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00425d88
test edi, edi
mov eax, edi
jne 0x425e58
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40155e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push edi
mov eax, 0x404168
push eax
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00401e8d
mov ecx, eax
call fcn.00401f77
mov ecx, eax
call fcn.00401f77
mov ecx, eax
call fcn.00401e39
push eax
lea ecx, [ebp - 8]
call fcn.00401e8d
lea ecx, [ebp - 0x10]
call fcn.00401ebe
lea ecx, [ebp - 0x18]
call fcn.00401ebe
lea ecx, [ebp - 0x20]
call fcn.00401ebe
push 0x400
call fcn.00403610
pop ecx
mov esi, eax
xor ebx, ebx
lea ecx, [ebp - 8]
mov byte [esi], bl
call fcn.00401e39
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0x44
pop edi
push edi
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.00403dc7
push 0x10
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.00403dc7
add esp, 0x18
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
mov dword [ebp - 0x74], edi
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov edi, eax
cmp edi, ebx
je 0x401624
push dword [ebp - 0x30]
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call ebx
push dword [ebp - 0x2c]
call ebx
push esi
call fcn.00403624
pop ecx
lea ecx, [ebp - 8]
call fcn.00401ebe
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401ae4
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
jne 0x401af1
xor eax, eax
pop edi
ret
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.00403610
test esi, esi
pop ecx
jle 0x401b1d
mov ecx, eax
sub edi, eax
mov edx, esi
push ebx
mov bl, byte [edi + ecx]
xor bl, 0x5b
mov byte [ecx], bl
inc ecx
dec edx
jne 0x401b10
pop ebx
mov byte [eax + esi], 0
pop esi
pop edi
ret

Function at 0x401b24
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jbe 0x401b45
mov eax, dword [esp + 4]
add eax, ecx
mov edx, dword [eax]
xor edx, dword [esp + 0xc]
add edx, ecx
add ecx, 4
cmp ecx, dword [esp + 8]
mov dword [eax], edx
jb 0x401b2c
ret

Function at 0x401b46
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jbe 0x401b67
mov eax, dword [esp + 4]
add eax, ecx
mov edx, dword [eax]
sub edx, ecx
xor edx, dword [esp + 0xc]
add ecx, 4
cmp ecx, dword [esp + 8]
mov dword [eax], edx
jb 0x401b4e
ret

Function at 0x402104
Capabilities:
Create service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push edi
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
call fcn.004020c1
pop ecx
pop ecx
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x40219b
cmp eax, 0xffffffff
je 0x40219b
push ebx
push esi
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 8]
mov esi, 0xf01ff
push 1
push 1
push 1
push esi
lea ecx, [ebp - 0x44]
push ecx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, eax
cmp ebx, edi
je 0x402161
cmp ebx, 0xffffffff
jne 0x402177
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x402187
xor edi, edi
inc edi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push dword [ebp - 4]
call esi
pop esi
mov eax, edi
pop ebx
jmp 0x40219d
xor eax, eax
pop edi
leave
ret

Function at 0x4021a0
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push edi
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
call fcn.004020c1
pop ecx
pop ecx
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, edi
je 0x402219
cmp ebx, 0xffffffff
je 0x402219
push esi
push 0xf01ff
lea eax, [ebp - 0x5c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, edi
je 0x40220d
cmp esi, 0xffffffff
je 0x40220d
lea eax, [ebp - 0x1c]
push eax
inc edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x402206
xor edi, edi
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop esi
jmp 0x40221b
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x40221f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x40000000
push str..LanManDrv
call fcn.004035ea
cmp eax, 0xffffffff
pop ecx
pop ecx
mov dword [ebp - 4], eax
jne 0x402241
xor eax, eax
leave
ret
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
lea edi, [ebx + 1]
push edi
call fcn.00403610
mov esi, eax
mov al, byte [ebp + 8]
push ebx
push dword [ebp + 0xc]
mov byte [esi], al
lea eax, [esi + 1]
push eax
call fcn.00403da5
add esp, 0x10
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call fcn.00403624
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

Function at 0x402310
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push edi
lea eax, [ebp - 0x20c]
push 0x200
push eax
call fcn.00403dfa
pop ecx
pop ecx
push str.iexchg.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x20c]
push 0x80000000
push eax
call fcn.004035ea
mov edi, eax
cmp edi, 0xffffffff
pop ecx
pop ecx
jne 0x402360
xor eax, eax
jmp 0x402482
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_ReadFile]
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call esi
test eax, eax
je 0x402477
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x80c]
push eax
push edi
call esi
test eax, eax
je 0x402477
mov eax, dword [ebp - 0xc]
push ebx
mov byte [ebp + eax - 0x80c], bl
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
je 0x402477
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x60c]
push eax
push edi
call esi
test eax, eax
je 0x402477
mov eax, dword [ebp - 4]
push edi
mov byte [ebp + eax - 0x60c], bl
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push 0x200
lea eax, [ebp - 0x40c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.00403610
mov dword [0x40503c], eax
mov eax, dword [ebp - 0xc]
inc eax
push eax
call fcn.00403610
pop ecx
mov dword [0x405040], eax
pop ecx
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
inc eax
push eax
call fcn.00403610
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
pop ecx
mov dword [0x405044], eax
lea eax, [ebp - 0x60c]
push eax
push dword [0x40503c]
call esi
lea eax, [ebp - 0x40c]
push eax
push dword [0x405044]
call esi
lea eax, [ebp - 0x80c]
push eax
push dword [0x405040]
call esi
xor eax, eax
inc eax
jmp 0x402480
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
Function at 0x4024a5
Capabilities:
Delete registry value
Initialize winsock library
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
push esi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
call main
pop ecx
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0xa365
push 0x232
push 0x10
push 0
push str.__srvmgr32
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, str.ZwQueryService
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00402310
test eax, eax
je 0x402529
call fcn.00402fd1
test eax, eax
jne 0x402530
xor eax, eax
jmp 0x4025d7
call fcn.004030fc
push dword [0x40503c]
call fcn.00402104
mov dword [esp], 0x40103d
push 0xbb8
push 0x161
push dword [0x405048]
call dword [sym.imp.USER32.dll_SetTimer]
call fcn.004032ab
test eax, eax
jne 0x40256b
call fcn.00403331
call fcn.00401ac9
call fcn.00401aaf
push 0x5c
push dword [0x40503c]
call fcn.00403638
push eax
call fcn.004022b0
push 0x5c
push dword [0x405040]
call fcn.00403638
push eax
call fcn.004022b0
push 0x5c
push dword [0x405044]
call fcn.00403638
push eax
call fcn.004022b0
call fcn.004022a2
push esi
call fcn.004022cb
push 0x5c
push dword [0x405040]
call fcn.00403638
push eax
call fcn.004022cb
add esp, 0x34
call fcn.00402485
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x402765
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
xor esi, esi
jmp 0x402782
cmp byte [eax + edi], 0x5c
je 0x402786
dec eax
cmp eax, esi
jg 0x40277b
cmp eax, esi
jne 0x402791
xor eax, eax
jmp 0x402823
push ebx
mov edi, 0x200
push edi
call fcn.00403610
mov ebx, eax
push edi
push ebx
call fcn.00403dfa
add esp, 0xc
push str.lanmanwrk.exe
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x404298
push esi
push esi
push esi
push esi
push esi
push ebx
push ebx
mov dword [ebp - 0x54], 0x44
mov word [ebp - 0x22], si
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x48], esi
mov word [ebp - 0x24], 5
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
push ebx
call fcn.00403624
pop ecx
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret