joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f14e0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5876e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
mov dword [ebp - 0x2c], edi
xor eax, eax
mov dword [ebp - 0x28], edx
mov ebx, dword [edi + 0x1c]
sub ebx, 6
mov dword [ebp - 0x34], ebx
test ebx, ebx
jle 0x4f1518
mov ecx, ebx
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x2c]
xor esi, esi
test ebx, ebx
jle 0x4f1562
mov ecx, 8
mov dword [ebp - 0x30], ecx
cmp edx, dword [edi + 0x1c]
ja 0x4f16a4
cmp esi, ebx
jge 0x4f154e
cmp eax, 4
jge 0x4f154b
lea edx, [ecx + eax]
mov ecx, dword [ebp + esi*4 - 0x24]
inc esi
mov dword [edi + edx*4], ecx
mov ecx, dword [ebp - 0x30]
inc eax
cmp esi, ebx
jl 0x4f1533
mov edx, dword [ebp - 0x28]
cmp eax, 4
jne 0x4f155e
inc edx
add ecx, eax
mov dword [ebp - 0x28], edx
xor eax, eax
mov dword [ebp - 0x30], ecx
cmp esi, ebx
jl 0x4f1526
cmp edx, dword [edi + 0x1c]
ja 0x4f16a4
mov esi, 0x564880
movzx ecx, byte [ebp + ebx*4 - 0x27]
mov dl, byte [ebp - 0x24]
xor dl, byte [ecx + str.cw]
mov byte [ebp - 0x24], dl
mov edx, 1
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]
movzx ecx, byte [ecx + str.cw]
xor byte [ebp - 0x21], cl
movzx ecx, byte [esi]
add esi, 4
xor byte [ebp - 0x24], cl
mov dword [ebp - 0x30], esi
cmp ebx, 8
je 0x4f15e0
cmp ebx, edx
jle 0x4f163e
jmp 0x4f15d0
mov ecx, dword [ebp + edx*4 - 0x28]
xor dword [ebp + edx*4 - 0x24], ecx
inc edx
cmp edx, ebx
jl 0x4f15d0
jmp 0x4f163e
mov ecx, dword [ebp + edx*4 - 0x28]
xor dword [ebp + edx*4 - 0x24], ecx
inc edx
cmp edx, 4
jl 0x4f15e0
movzx ecx, byte [ebp - 0x18]
mov edx, 5
movzx ecx, byte [ecx + str.cw]
xor byte [ebp - 0x14], cl
movzx ecx, byte [ebp - 0x17]
movzx ecx, byte [ecx + str.cw]
xor byte [ebp - 0x13], cl
movzx ecx, byte [ebp - 0x16]
movzx ecx, byte [ecx + str.cw]
xor byte [ebp - 0x12], cl
movzx ecx, byte [ebp - 0x15]
movzx ecx, byte [ecx + str.cw]
xor byte [ebp - 0x11], cl
jmp 0x4f1630
mov ecx, dword [ebp + edx*4 - 0x28]
xor dword [ebp + edx*4 - 0x24], ecx
inc edx
cmp edx, 8
jl 0x4f1630
xor esi, esi
test ebx, ebx
jle 0x4f1695
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
lea edi, [edx*4 + 8]
cmp edx, dword [ecx + 0x1c]
ja 0x4f1692
cmp esi, ebx
jge 0x4f1681
lea ebx, [ebx]
cmp eax, 4
jge 0x4f167b
mov ebx, dword [ebp - 0x2c]
lea edx, [edi + eax]
mov ecx, dword [ebp + esi*4 - 0x24]
inc eax
inc esi
mov dword [ebx + edx*4], ecx
mov ebx, dword [ebp - 0x34]
cmp esi, ebx
jl 0x4f1660
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
cmp eax, 4
jne 0x4f168e
inc edx
add edi, eax
mov dword [ebp - 0x28], edx
xor eax, eax
cmp esi, ebx
jl 0x4f1651
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x30]
cmp ecx, dword [edi + 0x1c]
jbe 0x4f1570
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050904e
mov esp, ebp
pop ebp
ret
Function at 0x4f16c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
mov edi, ecx
mov ebx, 1
cmp dword [edi + 0x1c], ebx
jbe 0x4f17aa
lea eax, [edi + 0x32]
push esi
jmp 0x4f16e0
movzx ecx, byte [eax + 1]
lea eax, [eax + 0x10]
movzx edx, byte [eax - 0x11]
inc ebx
mov esi, dword [ecx*4 + 0x58a810]
xor esi, dword [edx*4 + 0x58b020]
movzx ecx, byte [eax - 0x10]
xor esi, dword [ecx*4 + 0x58a3b0]
movzx ecx, byte [eax - 0x12]
xor esi, dword [ecx*4 + 0x58c670]
mov dword [eax - 0x12], esi
movzx ecx, byte [eax - 0xb]
movzx edx, byte [eax - 0xc]
mov esi, dword [ecx*4 + 0x58a810]
xor esi, dword [edx*4 + 0x58a3b0]
movzx ecx, byte [eax - 0xd]
xor esi, dword [ecx*4 + 0x58b020]
movzx ecx, byte [eax - 0xe]
xor esi, dword [ecx*4 + 0x58c670]
mov dword [eax - 0xe], esi
movzx ecx, byte [eax - 7]
movzx edx, byte [eax - 8]
mov esi, dword [ecx*4 + 0x58a810]
xor esi, dword [edx*4 + 0x58a3b0]
movzx ecx, byte [eax - 9]
xor esi, dword [ecx*4 + 0x58b020]
movzx ecx, byte [eax - 0xa]
xor esi, dword [ecx*4 + 0x58c670]
mov dword [eax - 0xa], esi
movzx ecx, byte [eax - 3]
movzx edx, byte [eax - 4]
mov esi, dword [ecx*4 + 0x58a810]
movzx ecx, byte [eax - 5]
xor esi, dword [edx*4 + 0x58a3b0]
xor esi, dword [ecx*4 + 0x58b020]
movzx ecx, byte [eax - 6]
xor esi, dword [ecx*4 + 0x58c670]
mov dword [eax - 6], esi
cmp ebx, dword [edi + 0x1c]
jb 0x4f16e0
pop esi
pop edi
pop ebx
ret
Function at 0x4f2810
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5876e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x108], edx
push esi
push edi
mov edi, dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], ebx
nop
mov byte [ebp + eax - 0x104], al
inc eax
cmp eax, 0x100
jl 0x4f2840
mov ebx, dword [ebp - 0x108]
xor esi, esi
xor edx, edx
lea esp, [esp]
movzx ecx, byte [ebp + edx - 0x104]
mov eax, edx
and eax, 0x8000000f
jns 0x4f2876
dec eax
or eax, 0xfffffff0
inc eax
movzx eax, byte [eax + ebx]
add eax, ecx
add esi, eax
and esi, 0x800000ff
jns 0x4f288e
dec esi
or esi, 0xffffff00
inc esi
mov al, byte [ebp + esi - 0x104]
mov byte [ebp + edx - 0x104], al
inc edx
mov byte [ebp + esi - 0x104], cl
cmp edx, 0x100
jl 0x4f2860
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x110]
sub esi, edi
mov dword [ebp - 0x108], 0x20
inc ebx
and ebx, 0x800000ff
jns 0x4f28d2
dec ebx
or ebx, 0xffffff00
inc ebx
movzx edx, byte [ebp + ebx - 0x104]
mov ecx, dword [ebp - 0x10c]
add ecx, edx
and ecx, 0x800000ff
jns 0x4f28f2
dec ecx
or ecx, 0xffffff00
inc ecx
movzx eax, byte [ebp + ecx - 0x104]
mov dword [ebp - 0x10c], ecx
mov byte [ebp + ebx - 0x104], al
mov byte [ebp + ecx - 0x104], dl
movzx ecx, byte [ebp + ebx - 0x104]
add ecx, edx
and ecx, 0x800000ff
jns 0x4f2928
dec ecx
or ecx, 0xffffff00
inc ecx
movzx eax, byte [ebp + ecx - 0x104]
xor al, byte [esi + edi]
mov byte [edi], al
inc edi
dec dword [ebp - 0x108]
jne 0x4f28c1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050904e
mov esp, ebp
pop ebp
ret
Function at 0x4f2950
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x5876e0]
xor eax, ebp
mov dword [ebp - 8], eax
lea ecx, [edx + 1]
mov eax, 0x4f7a09cd
imul ecx
imul ecx, ecx, 0x9ef4
push ebx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x7fffff07
push esi
mov esi, dword [ebp + 8]
sub ecx, eax
jns 0x4f298f
add ecx, 0x7fffff07
mov eax, ecx
mov byte [ebp - 0x18], cl
sar eax, 8
mov byte [ebp - 0x17], al
mov eax, ecx
sar eax, 0x10
mov byte [ebp - 0x16], al
mov eax, ecx
sar eax, 0x18
mov byte [ebp - 0x15], al
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
jns 0x4f29d1
add ecx, 0x7fffff07
mov eax, ecx
imul ebx, ecx, 0x9ef4
sar eax, 8
mov byte [ebp - 0x13], al
mov eax, ecx
sar eax, 0x10
mov byte [ebp - 0x12], al
mov eax, ecx
sar eax, 0x18
mov byte [ebp - 0x11], al
mov eax, 0x4f7a09cd
imul ecx
mov byte [ebp - 0x14], cl
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x7fffff07
sub ebx, eax
jns 0x4f2a13
add ebx, 0x7fffff07
mov eax, 0x4f7a09cd
mov byte [ebp - 0x10], bl
imul ebx
mov ecx, ebx
sar ecx, 8
mov byte [ebp - 0xf], cl
mov ecx, ebx
sar ecx, 0x10
sar edx, 0xe
mov byte [ebp - 0xe], cl
mov eax, edx
shr eax, 0x1f
mov ecx, ebx
sar ecx, 0x18
add eax, edx
mov byte [ebp - 0xd], cl
imul eax, eax, 0x7fffff07
imul ecx, ebx, 0x9ef4
sub ecx, eax
jns 0x4f2a55
add ecx, 0x7fffff07
mov eax, ecx
mov byte [ebp - 0xc], cl
sar eax, 8
lea edx, [ebp - 0x18]
mov byte [ebp - 0xb], al
mov eax, ecx
sar ecx, 0x18
sar eax, 0x10
mov byte [ebp - 9], cl
lea ecx, [ebp - 0x74]
push 0x10
mov byte [ebp - 0xa], al
mov dword [ebp - 0x74], 0x67452301
mov dword [ebp - 0x70], 0xefcdab89
mov dword [ebp - 0x6c], 0x98badcfe
mov dword [ebp - 0x68], 0x10325476
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
call fcn.004f2040
add esp, 4
lea edx, [ebp - 0x74]
mov ecx, esi
call fcn.004f1f90
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.0050904e
mov esp, ebp
pop ebp
ret
Function at 0x4f2ad0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x5876e0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x90], eax
xor eax, eax
cmp dword [ebp + 8], eax
push ebx
sete al
mov dword [ebp - 0xc], 0x546c4173
mov dword [ebp - 0x98], eax
mov ebx, edx
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x20]
push edi
mov edi, ecx
mov byte [ebp - 0x10], bl
push 0x18
movdqu xmm0, xmmword [eax]
mov eax, ebx
mov dword [ebp - 0x8c], 0x67452301
sar eax, 8
lea ecx, [ebp - 0x8c]
mov byte [ebp - 0xf], al
mov eax, ebx
sar eax, 0x10
mov byte [ebp - 0xe], al
mov eax, ebx
sar eax, 0x18
movdqu xmmword [ebp - 0x20], xmm0
mov byte [ebp - 0xd], al
mov dword [ebp - 0x88], 0xefcdab89
mov dword [ebp - 0x84], 0x98badcfe
mov dword [ebp - 0x80], 0x10325476
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
call fcn.004f2040
add esp, 4
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0x18]
call fcn.004f1f90
lea eax, [ebp - 0x30]
mov edx, ebx
push eax
call fcn.004f2950
add esp, 4
lea eax, [ebp - 0x30]
push eax
push ecx
mov ecx, dword [edi + 0x2c]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x98]
call fcn.004f0d20
mov eax, dword [ebp + 0x14]
add esp, 0x10
mov edx, dword [ebp - 0x94]
mov ecx, dword [edi + 0x2c]
shl eax, 3
cmp dword [ebp + 8], 0
push dword [ebp - 0x90]
push eax
je 0x4f2be7
call fcn.004f0df0
add esp, 8
pop edi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0050904e
mov esp, ebp
pop ebp
ret
call fcn.004f1170
mov ecx, dword [ebp - 8]
add esp, 8
xor ecx, ebp
pop edi
pop ebx
call fcn.0050904e
mov esp, ebp
pop ebp
ret
Function at 0x4f2db0
Capabilities:
Encode data using xor
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x5876e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, 0x20
xor ecx, ecx
cmp esi, eax
push edi
mov edi, dword [ebp + 0xc]
cmovg esi, eax
test esi, esi
jle 0x4f2dec
push esi
push edx
lea eax, [ebp - 0x54]
push eax
call fcn.00511d80
add esp, 0xc
mov ecx, esi
xor edx, edx
cmp ecx, 0x20
jge 0x4f2e09
cmp edx, 0x20
jge 0x4f2e09
mov al, byte [edx + 0x5643f0]
inc edx
mov byte [ebp + ecx - 0x54], al
inc ecx
cmp ecx, 0x20
jl 0x4f2df3
xor ecx, ecx
cmp ecx, 0x20
jge 0x4f2e20
mov al, byte [ecx + 0x5643f0]
mov byte [ebp + ecx - 0x34], al
inc ecx
cmp ecx, 0x20
jl 0x4f2e10
push 0x20
lea edx, [ebp - 0x34]
mov dword [ebp - 0xc0], 0x67452301
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xbc], 0xefcdab89
mov dword [ebp - 0xb8], 0x98badcfe
mov dword [ebp - 0xb4], 0x10325476
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
call fcn.004f2040
add esp, 4
lea edx, [ebp - 0xc0]
lea ecx, [ebp - 0x14]
call fcn.004f1f90
mov esi, 0x32
jmp 0x4f2e90
push 0x10
lea edx, [ebp - 0x14]
mov dword [ebp - 0xc0], 0x67452301
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xbc], 0xefcdab89
mov dword [ebp - 0xb8], 0x98badcfe
mov dword [ebp - 0xb4], 0x10325476
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
call fcn.004f2040
add esp, 4
lea edx, [ebp - 0xc0]
lea ecx, [ebp - 0x14]
call fcn.004f1f90
dec esi
jne 0x4f2e90
movdqu xmm0, xmmword [ebp - 0x54]
xor ebx, ebx
movdqu xmmword [ebp - 0x34], xmm0
movdqu xmm0, xmmword [ebp - 0x44]
movdqu xmmword [ebp - 0x24], xmm0
xor eax, eax
jmp 0x4f2f10
mov cl, byte [ebp + eax - 0x14]
xor cl, bl
mov byte [ebp + eax - 0x64], cl
inc eax
cmp eax, 0x10
jl 0x4f2f10
lea eax, [ebp - 0x34]
push eax
push ecx
push eax
push ecx
lea edx, [ebp - 0x64]
call fcn.004f2810
inc ebx
add esp, 0x10
cmp ebx, 0x14
jl 0x4f2f06
push 0x20
lea edx, [ebp - 0x54]
mov dword [ebp - 0xc0], 0x67452301
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xbc], 0xefcdab89
mov dword [ebp - 0xb8], 0x98badcfe
mov dword [ebp - 0xb4], 0x10325476
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
call fcn.004f2040
push 0x20
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0xc0]
call fcn.004f2040
add esp, 8
lea edx, [ebp - 0xc0]
lea ecx, [ebp - 0x14]
call fcn.004f1f90
mov esi, 0x32
lea ebx, [ebx]
push 0x10
lea edx, [ebp - 0x14]
mov dword [ebp - 0xc0], 0x67452301
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xbc], 0xefcdab89
mov dword [ebp - 0xb8], 0x98badcfe
mov dword [ebp - 0xb4], 0x10325476
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
call fcn.004f2040
add esp, 4
lea edx, [ebp - 0xc0]
lea ecx, [ebp - 0x14]
call fcn.004f1f90
dec esi
jne 0x4f2fb0
movdqu xmm0, xmmword [ebp - 0x14]
mov ecx, dword [ebp - 4]
xor ecx, ebp
movdqu xmmword [edi], xmm0
pop edi
pop esi
pop ebx
call fcn.0050904e
mov esp, ebp
pop ebp
ret
Function at 0x4f9a37
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x4f9a7c
call fcn.004f5021
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4f9a7c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4f9a98
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004f3906
mov ebx, eax
test edi, edi
je 0x4f9a96
test esi, esi
je 0x4f9a96
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5171e2
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5876e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0050ebce
mov dword [ebp - 0x14], eax
cmp dword [0x5a1ca8], esi
jne 0x5172d5
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x517262
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5173b5
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5173b5
push 0x55aaa4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5173b5
push eax
call ebx
push 0x55aab0
push edi
mov dword [0x5a1ca8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x55aac0
push edi
mov dword [0x5a1cac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5a1cb0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5a1cb8], eax
test eax, eax
je 0x5172d2
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5a1cb4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5172fa
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5172ed
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x51730f
push 4
pop eax
jmp 0x5173b7
cmp dword [ebp - 0x14], esi
je 0x51730f
push dword [0x5a1ca8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5172f4
mov eax, dword [0x5a1cb4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x51736d
cmp dword [0x5a1cb8], edi
je 0x51736d
push eax
call ebx
push dword [0x5a1cb8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x51736d
test eax, eax
je 0x51736d
call ecx
test eax, eax
je 0x517362
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x517362
test byte [ebp - 8], 1
jne 0x51736d
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x51739d
mov eax, dword [0x5a1cac]
cmp eax, edi
je 0x51739a
push eax
call ebx
test eax, eax
je 0x51739a
call eax
mov esi, eax
test esi, esi
je 0x51739a
mov eax, dword [0x5a1cb0]
cmp eax, edi
je 0x51739a
push eax
call ebx
test eax, eax
je 0x51739a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5a1ca8]
call ebx
test eax, eax
je 0x5173b5
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5173b7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050904e
mov esp, ebp
pop ebp
ret
Function at 0xa29370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xa2938e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xa52074
push ecx
mov edi, eax
call fcn.00a3d198
mov esi, eax
add esp, 8
test esi, esi
jne 0xa293cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00a3d02e
push esi
call fcn.00a3cfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xa2c850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xa2c8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xa57720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xa2c8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00a3d1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xa2c8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xa57720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xa2c92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00a3e082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xa2c957
mov word [eax], si
add eax, 2
push eax
call fcn.00a3e030
add esp, 4
jmp 0xa2c959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xa2c8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xa2c8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xa2cff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xa2d080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xa2d0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xa52458
push ecx
call fcn.00a3d1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00a3d1e1
add esp, 0x10
jmp 0xa2d0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00a3d20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00a3cdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00a2d050
mov eax, dword [0xa57728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xa2d13b
push esi
call fcn.00a2cfb0
add esp, 4
mov dword [0xa57728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xa2d14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00a2cff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xa30440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xa304b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xa3048e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xa30471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xa3047e
add edx, ecx
cmp ebx, edx
jb 0xa3048a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xa30467
xor ecx, ecx
jmp 0xa304a2
test eax, eax
jne 0xa30492
xor ecx, ecx
jmp 0xa304a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00a303c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xa308f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0xa30921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0xa30946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0xa3096e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0xa30993
push ecx
push esi
call fcn.00a304c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret