joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ce90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
add eax, eax
mov ebx, dword [edx + eax*8 + 0xc]
add ebx, 0x28
push edi
mov dword [ebp - 8], ebx
mov eax, esi
test esi, esi
je 0x47cec5
cmp byte [esi], 0
je 0x47cebe
inc eax
cmp byte [eax], 0
jne 0x47ceb8
sub eax, esi
and eax, 0x3fffffff
cmp dword [ebx], 0
mov dword [ebp - 4], eax
je 0x47cf0a
mov edx, eax
xor eax, eax
mov ecx, esi
cmp edx, eax
jle 0x47cefe
jmp 0x47cee0
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x4092b8]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc ecx
test edx, edx
jg 0x47cee0
mov ebx, dword [ebp - 8]
xor edx, edx
div dword [ebx]
mov eax, dword [ebp - 4]
mov dword [ebp - 8], edx
jmp 0x47cf11
mov dword [ebp - 8], 0
mov edx, dword [ebp - 8]
push eax
push esi
mov eax, ebx
call fcn.0042bd90
add esp, 8
test eax, eax
je 0x47cfda
mov edi, dword [eax + 8]
mov edx, dword [ebp - 8]
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.0042be30
test edi, edi
je 0x47cfda
mov edx, dword [edi + 0x18]
cmp dword [edi + 0x14], edx
jne 0x47cf90
mov ecx, dword [edi + 4]
mov eax, ecx
test ecx, ecx
je 0x47cf63
cmp byte [ecx], 0
je 0x47cf5c
inc eax
cmp byte [eax], 0
jne 0x47cf56
sub eax, ecx
and eax, 0x3fffffff
push ecx
add edx, 8
push edx
mov esi, eax
call fcn.0042be80
mov ecx, dword [eax + 0x40]
add eax, 0x40
add esp, 8
cmp ecx, edi
je 0x47cf89
lea esp, [esp]
lea eax, [ecx + 0x20]
mov ecx, dword [eax]
cmp ecx, edi
jne 0x47cf80
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
mov dword [eax], edx
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 8]
push eax
mov ebx, esi
call fcn.0047c020
mov eax, dword [edi]
add esp, 4
mov ecx, esi
call fcn.004287b0
mov eax, dword [edi + 4]
mov ecx, esi
call fcn.004287b0
mov ecx, dword [edi + 0xc]
push ecx
push esi
call fcn.00454bb0
mov edi, dword [edi + 0x10]
add esp, 8
call fcn.004619d0
mov eax, dword [ebp - 4]
mov ecx, esi
call fcn.004287b0
or dword [esi + 0x18], 0x200
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x490010
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4d50b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 0x1c]
xor edx, edx
sub ebx, 6
push esi
push edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], edx
cmp ebx, edx
jle 0x490042
mov esi, dword [ebp + 0xc]
mov ecx, ebx
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
test ebx, ebx
jle 0x490089
mov dword [ebp - 0x2c], 8
nop
mov esi, dword [ebp - 0x28]
cmp esi, dword [eax + 0x1c]
ja 0x490089
cmp ecx, ebx
jge 0x490077
lea esp, [esp]
cmp edx, 4
jge 0x49007a
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp + ecx*4 - 0x24]
add esi, edx
inc ecx
inc edx
mov dword [eax + esi*4], edi
cmp ecx, ebx
jl 0x490060
cmp edx, 4
jne 0x490085
inc dword [ebp - 0x28]
add dword [ebp - 0x2c], 4
xor edx, edx
cmp ecx, ebx
jl 0x490050
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax + 0x1c]
ja 0x4901ca
mov esi, 0x4d97e8
jmp 0x4900a3
mov esi, dword [ebp - 0x34]
movzx ecx, byte [ebp + ebx*4 - 0x27]
mov al, byte [ebp - 0x24]
xor al, byte [ecx + str.cw]
add esi, 4
mov byte [ebp - 0x24], al
movzx ecx, byte [ebp + ebx*4 - 0x26]
movzx ecx, byte [ecx + str.cw]
xor byte [ebp - 0x23], cl
movzx ecx, byte [ebp + ebx*4 - 0x25]
movzx ecx, byte [ecx + str.cw]
xor byte [ebp - 0x22], cl
movzx ecx, byte [ebp + ebx*4 - 0x28]
xor al, byte [esi - 4]
movzx ecx, byte [ecx + str.cw]
xor byte [ebp - 0x21], cl
mov byte [ebp - 0x24], al
mov dword [ebp - 0x34], esi
mov eax, 1
cmp ebx, 8
je 0x490110
cmp ebx, eax
jle 0x49016e
jmp 0x490100
mov ecx, dword [ebp + eax*4 - 0x28]
xor dword [ebp + eax*4 - 0x24], ecx
inc eax
cmp eax, ebx
jl 0x490100
jmp 0x49016e
mov ecx, dword [ebp + eax*4 - 0x28]
xor dword [ebp + eax*4 - 0x24], ecx
inc eax
cmp eax, 4
jl 0x490110
movzx eax, byte [ebp - 0x18]
movzx ecx, byte [eax + str.cw]
movzx eax, byte [ebp - 0x17]
xor byte [ebp - 0x14], cl
movzx ecx, byte [eax + str.cw]
movzx eax, byte [ebp - 0x16]
xor byte [ebp - 0x13], cl
movzx ecx, byte [eax + str.cw]
movzx eax, byte [ebp - 0x15]
xor byte [ebp - 0x12], cl
movzx ecx, byte [eax + str.cw]
xor byte [ebp - 0x11], cl
mov eax, 5
jmp 0x490160
mov ecx, dword [ebp + eax*4 - 0x28]
xor dword [ebp + eax*4 - 0x24], ecx
inc eax
cmp eax, 8
jl 0x490160
xor eax, eax
test ebx, ebx
jle 0x4901bb
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx*4 + 8]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x28]
cmp esi, dword [ecx + 0x1c]
ja 0x4901be
cmp eax, ebx
jge 0x4901a7
cmp edx, 4
jge 0x4901aa
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp + eax*4 - 0x24]
add esi, edx
inc eax
inc edx
mov dword [ecx + esi*4], edi
cmp eax, ebx
jl 0x490190
cmp edx, 4
jne 0x4901b5
inc dword [ebp - 0x28]
add dword [ebp - 0x2c], 4
xor edx, edx
cmp eax, ebx
jl 0x490181
jmp 0x4901be
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
cmp eax, dword [ecx + 0x1c]
jbe 0x4900a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c3ec2
mov esp, ebp
pop ebp
ret
Function at 0x4901e0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 1
cmp dword [edx + 0x1c], ecx
jbe 0x4902ca
push esi
lea eax, [edx + 0x32]
push edi
jmp 0x490200
movzx esi, byte [eax + 1]
mov esi, dword [esi*4 + 0x4d93e8]
movzx edi, byte [eax - 1]
xor esi, dword [edi*4 + 0x4d8be8]
movzx edi, byte [eax]
xor esi, dword [edi*4 + 0x4d8fe8]
movzx edi, byte [eax - 2]
xor esi, dword [edi*4 + 0x4d87e8]
inc ecx
mov dword [eax - 2], esi
movzx esi, byte [eax + 5]
mov esi, dword [esi*4 + 0x4d93e8]
movzx edi, byte [eax + 4]
xor esi, dword [edi*4 + 0x4d8fe8]
movzx edi, byte [eax + 3]
xor esi, dword [edi*4 + 0x4d8be8]
movzx edi, byte [eax + 2]
xor esi, dword [edi*4 + 0x4d87e8]
add eax, 0x10
mov dword [eax - 0xe], esi
movzx esi, byte [eax - 7]
mov esi, dword [esi*4 + 0x4d93e8]
movzx edi, byte [eax - 8]
xor esi, dword [edi*4 + 0x4d8fe8]
movzx edi, byte [eax - 9]
xor esi, dword [edi*4 + 0x4d8be8]
movzx edi, byte [eax - 0xa]
xor esi, dword [edi*4 + 0x4d87e8]
mov dword [eax - 0xa], esi
movzx esi, byte [eax - 3]
movzx edi, byte [eax - 4]
mov esi, dword [esi*4 + 0x4d93e8]
xor esi, dword [edi*4 + 0x4d8fe8]
movzx edi, byte [eax - 5]
xor esi, dword [edi*4 + 0x4d8be8]
movzx edi, byte [eax - 6]
xor esi, dword [edi*4 + 0x4d87e8]
mov dword [eax - 6], esi
cmp ecx, dword [edx + 0x1c]
jb 0x490200
pop edi
pop esi
ret
Function at 0x4912d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4d50b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x108], eax
xor esi, esi
mov edi, ecx
xor eax, eax
jmp 0x491300
mov byte [ebp + eax - 0x104], al
inc eax
cmp eax, 0x100
jl 0x491300
xor edx, edx
xor eax, eax
jmp 0x491320
movzx ecx, byte [ebp + eax - 0x104]
mov ebx, eax
and ebx, 0x8000000f
jns 0x491337
dec ebx
or ebx, 0xfffffff0
inc ebx
movzx ebx, byte [ebx + edi]
add ebx, ecx
add edx, ebx
and edx, 0x800000ff
jns 0x49134f
dec edx
or edx, 0xffffff00
inc edx
mov bl, byte [ebp + edx - 0x104]
mov byte [ebp + eax - 0x104], bl
inc eax
mov byte [ebp + edx - 0x104], cl
cmp eax, 0x100
jl 0x491320
mov ecx, dword [ebp - 0x108]
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp - 0x108], 0x20
mov edi, esi
inc esi
and esi, 0x800000ff
jns 0x491394
dec esi
or esi, 0xffffff00
inc esi
movzx eax, byte [ebp + esi - 0x104]
add edi, eax
and edi, 0x800000ff
jns 0x4913ae
dec edi
or edi, 0xffffff00
inc edi
mov bl, byte [ebp + edi - 0x104]
mov byte [ebp + esi - 0x104], bl
mov byte [ebp + edi - 0x104], al
movzx ebx, byte [ebp + esi - 0x104]
add ebx, eax
and ebx, 0x800000ff
jns 0x4913dd
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [ebp + ebx - 0x104]
xor al, byte [edx + ecx]
inc ecx
dec dword [ebp - 0x108]
mov byte [ecx - 1], al
jne 0x491383
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c3ec2
mov esp, ebp
pop ebp
ret
Function at 0x491410
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x70
mov eax, dword [0x4d50b4]
xor eax, esp
mov dword [esp + 0x6c], eax
inc ecx
push ebx
mov ebx, edx
mov eax, 0x4f7a09cd
imul ecx
imul ecx, ecx, 0x9ef4
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x7fffff07
sub ecx, eax
push esi
jns 0x491450
add ecx, 0x7fffff07
mov edx, ecx
sar edx, 8
mov byte [esp + 0x65], dl
mov eax, ecx
sar eax, 0x10
mov byte [esp + 0x66], al
mov edx, ecx
sar edx, 0x18
mov byte [esp + 0x67], dl
mov eax, 0x4f7a09cd
imul ecx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esp + 0x64], cl
imul eax, eax, 0x7fffff07
imul ecx, ecx, 0x9ef4
sub ecx, eax
jns 0x491496
add ecx, 0x7fffff07
mov edx, ecx
sar edx, 8
mov byte [esp + 0x69], dl
mov eax, ecx
sar eax, 0x10
mov byte [esp + 0x6a], al
mov edx, ecx
sar edx, 0x18
mov byte [esp + 0x6b], dl
mov eax, 0x4f7a09cd
imul ecx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esp + 0x68], cl
imul eax, eax, 0x7fffff07
imul ecx, ecx, 0x9ef4
sub ecx, eax
jns 0x4914dc
add ecx, 0x7fffff07
mov edx, ecx
sar edx, 8
mov byte [esp + 0x6d], dl
mov eax, ecx
sar eax, 0x10
mov byte [esp + 0x6e], al
mov edx, ecx
sar edx, 0x18
mov byte [esp + 0x6f], dl
mov eax, 0x4f7a09cd
imul ecx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esp + 0x6c], cl
imul eax, eax, 0x7fffff07
imul ecx, ecx, 0x9ef4
sub ecx, eax
jns 0x491522
add ecx, 0x7fffff07
mov eax, ecx
mov edx, ecx
sar eax, 0x10
mov byte [esp + 0x70], cl
sar ecx, 0x18
mov byte [esp + 0x72], al
xor eax, eax
mov byte [esp + 0x73], cl
lea ecx, [esp + 0x64]
sar edx, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0x10
push ecx
lea eax, [esp + 0x10]
mov byte [esp + 0x79], dl
mov dword [esp + 0x10], 0x67452301
mov dword [esp + 0x14], 0xefcdab89
mov dword [esp + 0x18], 0x98badcfe
mov dword [esp + 0x1c], 0x10325476
call fcn.00490b30
add esp, 8
lea esi, [esp + 8]
call fcn.00490a80
mov ecx, dword [esp + 0x74]
pop esi
pop ebx
xor ecx, esp
call fcn.004c3ec2
mov esp, ebp
pop ebp
ret
Function at 0x4915a0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [0x4d50b4]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], edx
xor edx, edx
mov dword [esp + 8], ecx
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
push ebx
sete dl
push esi
push 0x18
mov dword [esp + 0x8c], 0x546c4173
mov dword [esp + 0x1c], 0x67452301
mov dword [esp + 0x20], 0xefcdab89
mov dword [esp + 0x24], 0x98badcfe
mov dword [esp + 0x18], edx
mov edx, dword [eax]
mov dword [esp + 0x78], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x7c], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x84], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x80], edx
mov edx, eax
sar edx, 8
mov byte [esp + 0x88], al
mov byte [esp + 0x89], dl
mov edx, eax
sar eax, 0x18
mov byte [esp + 0x8b], al
lea eax, [esp + 0x78]
sar edx, 0x10
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0x8e], dl
mov dword [esp + 0x2c], 0x10325476
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
call fcn.00490b30
lea esi, [esp + 0x20]
lea ebx, [esp + 0x7c]
call fcn.00490a80
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x94]
call fcn.00491410
mov ecx, dword [esp + 0x1c]
mov esi, dword [edi + 0x2c]
push ecx
lea ecx, [esp + 0x98]
mov edx, ebx
call fcn.0048f940
mov eax, dword [ebp + 0x14]
mov edx, dword [esp + 0x18]
add eax, eax
add eax, eax
add esp, 0xc
add eax, eax
cmp dword [ebp + 0xc], 0
push edx
je 0x4916d2
mov ecx, dword [edi + 0x2c]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.0048fa20
add esp, 8
pop esi
pop ebx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004c3ec2
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [edi + 0x2c]
call fcn.0048fd20
mov ecx, dword [esp + 0xa4]
add esp, 8
pop esi
pop ebx
xor ecx, esp
call fcn.004c3ec2
mov esp, ebp
pop ebp
ret
Function at 0x491890
Capabilities:
Encode data using xor
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
mov eax, dword [0x4d50b4]
xor eax, esp
mov dword [esp + 0xc0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, edx
mov dword [esp + 0xc], eax
xor edi, edi
xor eax, eax
cmp esi, 0x20
jle 0x4918c4
mov esi, 0x20
cmp esi, edi
jle 0x4918dc
push esi
push ecx
lea edx, [esp + 0xb4]
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov eax, esi
xor ecx, ecx
cmp eax, 0x20
jge 0x4918fc
cmp ecx, 0x20
jge 0x4918fc
mov dl, byte [ecx + 0x4d65c4]
mov byte [esp + eax + 0xac], dl
inc eax
inc ecx
cmp eax, 0x20
jl 0x4918e3
xor eax, eax
cmp eax, 0x20
jge 0x491913
mov cl, byte [eax + 0x4d65c4]
mov byte [esp + eax + 0x7c], cl
inc eax
cmp eax, 0x20
jl 0x491903
lea edx, [esp + 0x7c]
push 0x20
push edx
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.00490b30
add esp, 8
lea esi, [esp + 0x10]
lea ebx, [esp + 0x6c]
call fcn.00490a80
mov edi, 0x32
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x6c]
push 0x10
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.00490b30
add esp, 8
lea esi, [esp + 0x10]
lea ebx, [esp + 0x6c]
call fcn.00490a80
dec edi
jne 0x491960
mov ecx, 8
lea esi, [esp + 0xac]
lea edi, [esp + 0x7c]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
xor ebx, ebx
xor eax, eax
jmp 0x4919d0
mov cl, byte [esp + eax + 0x6c]
xor cl, bl
mov byte [esp + eax + 0x9c], cl
inc eax
cmp eax, 0x10
jl 0x4919d0
lea edx, [esp + 0x7c]
push edx
mov eax, edx
push eax
lea ecx, [esp + 0xa4]
call fcn.004912d0
inc ebx
add esp, 8
cmp ebx, 0x14
jl 0x4919c3
lea ecx, [esp + 0xac]
push 0x20
push ecx
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.00490b30
lea edx, [esp + 0x84]
push 0x20
push edx
lea eax, [esp + 0x20]
call fcn.00490b30
add esp, 0x10
lea esi, [esp + 0x10]
lea ebx, [esp + 0x6c]
call fcn.00490a80
mov edi, 0x32
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x6c]
push 0x10
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.00490b30
add esp, 8
lea esi, [esp + 0x10]
lea ebx, [esp + 0x6c]
call fcn.00490a80
dec edi
jne 0x491a63
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov dword [eax], ecx
mov ecx, dword [esp + 0x74]
pop edi
mov dword [eax + 4], edx
mov edx, dword [esp + 0x74]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0xc8]
pop esi
pop ebx
xor ecx, esp
mov dword [eax + 0xc], edx
call fcn.004c3ec2
mov esp, ebp
pop ebp
ret
Function at 0x4a11b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4d50b4]
xor eax, ebp
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0049b220
add esp, 8
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x24], 0
jle 0x4a130c
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x2c], eax
push 0xffffffffffffffde
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.USER32.dll_GetClassLongW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4a127b
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x74]
and ecx, 0x200
je 0x4a127b
push 3
push 0
push 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x48]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x44]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x48]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebp - 0x2c]
sub edx, eax
push edx
push 8
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_DrawIconEx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x44]
add edx, 0xb
mov dword [ebp - 0x24], edx
jmp 0x4a1282
mov dword [ebp - 0x24], 8
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x74]
and ecx, 0x400
je 0x4a130c
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x24]
cmp edx, 0x14
jle 0x4a130c
xor eax, eax
mov word [ebp - 0x230], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x22e]
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x100
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
jle 0x4a130c
push 1
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0x24
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.004c3ec2
mov esp, ebp
pop ebp
ret
Function at 0x4a3c90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 2
jne 0x4a3d1e
movzx eax, word [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004a4200
lea ecx, [ebp - 0x14]
call fcn.004a4150
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 0
fild qword [ebp - 0x54]
push ecx
fstp dword [esp]
lea ecx, [ebp - 0x14]
call fcn.004a4120
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 0
fild qword [ebp - 0x5c]
push ecx
fstp dword [esp]
push ecx
fldz
fstp dword [esp]
push ecx
fldz
fstp dword [esp]
lea ecx, [ebp - 0x24]
call fcn.004a3e80
push 0
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x14]
call fcn.004a4310
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
lea ecx, [ebp - 0x14]
call fcn.004a41e0
jmp 0x4a3df8
movzx edx, word [ebp + 8]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x4a3d47
xor al, al
jmp 0x4a3dfa
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x30]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x28]
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [ebp - 0x3c], 0
lea edx, [ebp - 0x3c]
push edx
push 1
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov dword [ebp - 0x48], eax
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.004a3f50
add esp, 8
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 0x34], eax
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4aa260
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4d50b4]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.004aa110
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004254a0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4aa2cb
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.00425550
mov eax, dword [ebp - 0x224]
jmp 0x4aa35c
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4aa331
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004aa260
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4aa328
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.00425550
mov eax, dword [ebp - 0x228]
jmp 0x4aa35c
mov dword [ebp - 4], 0x100
jmp 0x4aa2d2
lea ecx, [ebp - 0x14]
call fcn.00425520
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.004aa1a0
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.00425550
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004c3ec2
mov esp, ebp
pop ebp
ret 4
Function at 0x4aa8c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x4aa8c9
xor ecx, ecx
jne 0x4aa8c9
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x4aa8ea
mov eax, 0xd
jmp 0x4aa945
xor eax, eax
jne 0x4aa8d1
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x4aa8fb
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8
Function at 0x4c3ec2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d50b4]
jne 0x4c3ecc
repz ret
jmp fcn.004c46af
Function at 0x4cd32a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4da2cc], 0
push esi
push edi
jne 0x4cd2a0
call fcn.004cd20c
test eax, eax
je 0x4cd2e5
mov eax, dword [0x4da2cc]
cmp eax, 1
jne 0x4cd2c1
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4cd2e5
jmp 0x4cd327
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x4cd327
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4cd2e9
xor eax, eax
jmp 0x4cd327
mov eax, dword [esi]
push dword [0x4da2cc]
call edi
mov edi, eax
test edi, edi
je 0x4cd30b
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4cd327
lea edi, [esi + 0xff0]
push esi
push dword [0x4da2cc]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x4cd311
mov eax, esi
pop edi
pop esi
ret
jmp 0x4cd28c