joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427487
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0042712b
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4274d1
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004142ee
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405c30
jmp 0x4274dc
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0042be4f
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4274e2
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0041dc64
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x42751f
call fcn.0042712b
mov dword [esi + 0xc], 1
jmp 0x427524
call fcn.0042712b
cmp dword [esi], 0
je 0x42756d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x427545
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004142ee
jmp 0x427557
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00402530
push pe_nt_image_headers32
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405c30
jmp 0x427591
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x427591
push dword [esi]
push dword [ebp + 8]
call fcn.0042be4f
pop esi
pop ebp
ret 0xc

Function at 0x42cae7
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x58bcc0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x42cb1c
xor eax, eax
jmp 0x42cb6f
lea eax, [ebp - 0x210]
push eax
call fcn.0051455d
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x42cb4d
push 0x566d38
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005183d4
add esp, 0xc
test eax, eax
jne 0x42cb18
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005183d4
add esp, 0xc
test eax, eax
jne 0x42cb18
lea eax, [ebp - 0x210]
push eax
call fcn.004190a4
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00513242
leave
ret
Function at 0x4832e1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4832fb
call fcn.0041f6c1
mov esi, dword [eax + 0xc]
push dword [0x591068]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x483319
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x483311
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x483346
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x483313
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0048320f
mov esi, eax
jmp 0x483338

Function at 0x4f9f9c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4f9fb4
mov edi, dword [esi + 0xc]
jmp 0x4f9ff4
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4f9fcd
call fcn.00416058
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4f9fe2
call fcn.00416058
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4f9ff4
call fcn.00416058
call fcn.0041f6c1
cmp dword [eax + 0x3c], 0
je 0x4fa009
push edi
mov ecx, ebx
call fcn.004f8dcd
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004f9eb6
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4fa027
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4fa033
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x513242
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x58bcc0]
jne 0x51324c
repz ret
jmp fcn.0051b363
Function at 0x526208
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x58bcc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0051ad8b
and dword [ebp - 0x14], 0
cmp dword [0x593a24], 0
mov dword [ebp - 0x18], eax
jne 0x5262bb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x526363
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5650b8
push ebx
call edi
test eax, eax
je 0x526363
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5650a8
push ebx
mov dword [0x593a24], eax
call edi
push eax
call esi
push 0x565094
push ebx
mov dword [0x593a28], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x593a2c], eax
call edi
push eax
call esi
mov dword [0x593a34], eax
test eax, eax
je 0x5262bb
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x593a30], eax
mov eax, dword [0x593a30]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x526314
cmp dword [0x593a34], ecx
je 0x526314
push eax
call esi
push dword [0x593a34]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x526314
test ebx, ebx
je 0x526314
call edi
test eax, eax
je 0x52630b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x52630b
test byte [ebp - 8], 1
jne 0x526314
or dword [ebp + 0x10], 0x200000
jmp 0x526347
mov eax, dword [0x593a28]
cmp eax, dword [ebp - 0x18]
je 0x526347
push eax
call esi
test eax, eax
je 0x526347
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x526347
mov eax, dword [0x593a2c]
cmp eax, dword [ebp - 0x18]
je 0x526347
push eax
call esi
test eax, eax
je 0x526347
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x593a24]
call esi
test eax, eax
je 0x526363
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x526365
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00513242
leave
ret
Function at 0x401270
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4597db
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x486850]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x28], 7
mov dword [esi + 0x24], 0
mov word [esi + 0x14], ax
push ecx
push dword [ebp + 0x14]
mov dword [ebp - 4], eax
push ecx
push dword [ebp + 0xc]
mov dword [esi + 0x2c], eax
push dword [ebp + 8]
mov byte [esi + 0x30], al
call fcn.00401390
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x402c30
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, ecx
push esi
cmp dword [ebx + 0x130], 0
mov dword [ebp - 4], 0
jbe 0x402c7b
mov esi, dword [ebp + 8]
xor eax, eax
push 0xffffffffffffffff
push eax
lea ecx, [ebx + 0x120]
push ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
call fcn.004024b0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 8], 0
jne 0x402c99
mov ecx, dword [ebp + 8]
push 0x468378
call fcn.00402a00
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
movzx eax, word [0x4683fc]
neg eax
push edi
sbb eax, eax
and eax, 3
push eax
lea edi, [ebx + 0x120]
push 0x4683fc
mov ecx, edi
call fcn.00402900
mov eax, dword [ebx + 8]
sub eax, 5
je 0x402d4b
dec eax
jne case.default.0x402cda
mov eax, dword [ebx + 0xc]
cmp eax, 3
ja case.default.0x402cda
jmp dword [eax*4 + 0x402dbc]
cmp byte [ebx + 0x11e], 1
mov ecx, edi
jne 0x402cf6
push 0x4683cc
jmp 0x402d88
push 0x4683bc
jmp 0x402d88
cmp byte [ebx + 0x11e], 1
mov ecx, edi
jne 0x402d12
push 0x4683d4
jmp 0x402d88
push 0x4683c4
jmp 0x402d88
cmp byte [ebx + 0x11e], 1
mov ecx, edi
jne 0x402d2b
push 0x4683dc
jmp 0x402d88
push 0x4683e4
jmp 0x402d88
cmp byte [ebx + 0x11e], 1
mov ecx, edi
jne 0x402d44
push 0x4683ec
jmp 0x402d88
push 0x4683f4
jmp 0x402d88
mov eax, dword [ebx + 0xc]
sub eax, 0
je 0x402d81
dec eax
je 0x402d73
dec eax
jne case.default.0x402cda
cmp byte [ebx + 0x11e], 1
jne 0x402d7a
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x28], 9
jne case.default.0x402cda
push 0x4683ac
jmp 0x402d86
push 0x4683b4
jmp 0x402d86
push 0x4683a4
mov ecx, edi
call fcn.004019b0
mov esi, dword [ebp + 8]
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push edi
mov ecx, esi
mov word [esi], ax
call fcn.004024b0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403ba0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
push ebx
push esi
push edi
jmp 0x403bb0
mov edx, eax
and edx, 1
dec edx
not edx
and edx, 0xedb88320
mov ecx, eax
shr ecx, 1
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr edx, 1
xor ecx, edx
mov edx, ecx
and edx, 1
dec edx
shr ecx, 1
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr edx, 1
xor ecx, edx
mov edx, ecx
and edx, 1
dec edx
shr ecx, 1
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr edx, 1
xor ecx, edx
mov edx, ecx
and edx, 1
dec edx
shr ecx, 1
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr edx, 1
xor ecx, edx
mov dword [eax*4 + 0x48a6a0], ecx
inc eax
cmp eax, 0x100
jb 0x403bb0
cmp eax, 0x800
jae 0x403c83
lea esp, [esp]
mov edx, dword [eax*4 + 0x48a2a0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x48a6a0]
inc eax
mov dword [eax*4 + 0x48a69c], edx
cmp eax, 0x800
jb 0x403c60
lea ecx, [ebp - 0x20]
mov dword [0x4895a4], 0x403d40
call fcn.004079c0
test eax, eax
je 0x403d38
mov edi, dword [ebp - 0x10]
mov esi, edi
shr esi, 8
shr edi, 4
and esi, 0xff00f
and edi, 0xf00f
xor ecx, ecx
mov eax, 0x487760
xor edx, edx
lea ecx, [ecx]
mov ebx, dword [ebp - 0x1c]
cmp dword [eax - 8], ebx
jne 0x403cd7
mov ebx, dword [ebp - 0x18]
cmp dword [eax - 4], ebx
mov ebx, dword [ebp - 0x14]
jne 0x403cd7
cmp dword [eax], ebx
je 0x403ce6
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x403cc0
or ecx, 0xffffffff
sub ecx, 0
je 0x403d1f
dec ecx
je 0x403d0e
dec ecx
jne 0x403d38
cmp esi, 6
jb 0x403d38
jne 0x403d2e
cmp edi, 0xf
jb 0x403d38
mov dword [0x4895a4], 0x403de0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 5
jb 0x403d38
jne 0x403d2e
cmp edi, 6
jb 0x403d38
cmp edi, 0xa
jmp 0x403d2c
cmp esi, 6
jb 0x403d38
jne 0x403d2e
cmp edi, 0x100c
je 0x403d38
mov dword [0x4895a4], 0x403de0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4048a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov esi, dword [edi]
mov dword [ebp - 4], ecx
test esi, esi
je 0x4048fe
mov dword [edi], 0
jmp 0x4048c0
mov eax, 0x400000
cmp esi, 0x400000
ja 0x4048cf
mov eax, esi
push 0
lea edx, [ebp + 8]
push edx
push eax
push ebx
push dword [ecx]
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x404907
test ecx, ecx
je 0x4048fe
mov ecx, dword [ebp - 4]
test esi, esi
jne 0x4048c0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov esi, dword [edi]
mov dword [ebp - 4], ecx
test esi, esi
je 0x40497e
mov dword [edi], 0
jmp 0x404940
mov eax, 0x400000
cmp esi, 0x400000
ja 0x40494f
mov eax, esi
push 0
lea edx, [ebp + 8]
push edx
push eax
push ebx
push dword [ecx]
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x404987
test ecx, ecx
je 0x40497e
mov ecx, dword [ebp - 4]
test esi, esi
jne 0x404940
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407820
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push ebx
mov eax, dword [eax]
push esi
mov esi, ecx
xor ebx, ebx
and eax, 7
mov dword [ebp - 4], esi
cmp edx, 5
jae 0x407844
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 8], 5
push edi
add edx, 0xfffffffc
or edi, 0xffffffff
add edx, esi
mov dword [ebp - 8], edx
add esi, ebx
mov dword [ebp - 0xc], esi
cmp esi, edx
jae 0x407872
lea ecx, [ecx]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x40786f
inc esi
cmp esi, edx
jb 0x407860
mov dword [ebp - 0xc], esi
mov ebx, esi
sub ebx, dword [ebp - 4]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x407997
cmp ecx, 3
jbe 0x40788c
xor eax, eax
jmp 0x4078ca
dec ecx
shl eax, cl
and eax, 7
je 0x4078ca
movzx ecx, byte [eax + 0x4684a0]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x468498], 0
mov cl, byte [edx + 4]
je 0x4078b4
test cl, cl
je 0x4078b4
cmp cl, 0xff
jne 0x4078c7
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 4]
and eax, 3
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x407854
mov edx, dword [ebp - 8]
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x18], edi
test cl, cl
je 0x4078ec
cmp cl, 0xff
je 0x4078ec
mov esi, dword [ebp - 4]
and eax, 3
add eax, eax
or eax, 1
inc ebx
jmp 0x407854
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 8]
shl edi, 8
or edi, ecx
lea ecx, [ecx]
cmp dword [ebp + 0x10], 0
je 0x40791d
lea edx, [edi + ebx]
add edx, esi
jmp 0x407923
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x407961
movzx edi, byte [eax + 0x4684a0]
shl edi, 3
mov ecx, 0x18
sub ecx, edi
mov dword [ebp - 0x14], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 0x10], edi
test cl, cl
je 0x40794d
cmp cl, 0xff
jne 0x407961
mov ecx, 0x20
sub ecx, dword [ebp - 0x14]
mov edi, 1
shl edi, cl
dec edi
xor edi, edx
jmp 0x407910
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
mov ecx, edx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
shr ecx, 8
mov byte [esi + 1], dl
mov edx, dword [ebp - 8]
mov byte [esi + 2], cl
mov esi, dword [ebp - 4]
add ebx, 5
jmp 0x407854
pop edi
cmp ecx, 3
jbe 0x4079ac
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx], eax
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0xc]
pop esi
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409e50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459c11
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x486850]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 0
call fcn.0040a290
test al, al
je 0x409ea1
mov dword [0x4893c8], 4
jmp 0x409eaa
call fcn.0040a1d0
test al, al
jne 0x409eb4
mov dword [0x487790], 4
lea ecx, [ebp - 0x28]
call fcn.0042c0c0
push str..exe
mov edx, eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.0040a580
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x2c], 1
jb 0x409ef0
push dword [ebp - 0x28]
call fcn.0043d3af
add esp, 4
xor eax, eax
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x409f0e
mov edx, dword [esi]
jmp 0x409f10
mov edx, esi
mov ecx, str.AVG_TOOLBAR
call fcn.00417450
test eax, eax
jns 0x409f36
push 0
push 0x468378
mov ecx, esi
mov dword [0x487790], 0
call fcn.00402900
mov eax, dword [0x487790]
cmp eax, 3
jne 0x409f91
push 0
call fcn.0043e36f
add esp, 4
push 0
push 3
push edx
push eax
call fcn.00459400
mov ecx, eax
or eax, edx
je 0x409f85
cmp ecx, 1
jne 0x409f70
test edx, edx
jne 0x409f70
mov dword [0x487790], 2
jmp 0x409fb7
cmp ecx, 2
jne 0x409f64
test edx, edx
jne 0x409f64
mov dword [0x487790], 1
jmp 0x409fb7
mov dword [0x487790], 4
jmp 0x409f96
cmp eax, 4
jne 0x409fb7
cmp dword [esi + 0x14], 8
jb 0x409fa0
mov eax, dword [esi]
jmp 0x409fa2
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x468378
mov ecx, esi
call fcn.00402900
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret

Function at 0x40a1d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459bc8
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x486850]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x148]
push eax
mov dword [ebp - 0x148], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40a24a
push 0x18
push str.extract_avg:GetVersionEx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
call fcn.00402900
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.00418810
cmp dword [ebp - 0x144], 5
jne 0x40a263
cmp dword [ebp - 0x140], 1
jne 0x40a263
cmp word [ebp - 0x34], 3
jb 0x40a272
mov al, byte [ebp - 0x2e]
cmp al, 3
je 0x40a272
cmp al, 2
je 0x40a272
mov al, 1
jmp 0x40a274
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret
Function at 0x40ad70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459c78
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x486850]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x14
xor eax, eax
push 0x468d78
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00402900
push 0x468374
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.0040a580
add esp, 4
cmp dword [ebp - 0x14], 8
jb 0x40ade7
push dword [ebp - 0x28]
call fcn.0043d3af
add esp, 4
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x40adf3
lea eax, [ebp - 0x40]
push 0
lea ecx, [ebp - 0x44]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40ae71
cmp dword [0x489588], 8
mov edx, dword [0x489574]
mov ecx, edx
jae 0x40ae2c
mov ecx, 0x489574
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ae30
sub ecx, edi
sar ecx, 1
cmp dword [0x489588], 8
jae 0x40ae4d
mov edx, 0x489574
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.CurSID
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x2c], 8
jb 0x40ae82
push dword [ebp - 0x40]
call fcn.0043d3af
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret

Function at 0x40aea0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459c48
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x486850]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x14
xor eax, eax
push 0x468d78
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00402900
push 0x468374
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.0040a580
add esp, 4
cmp dword [ebp - 0x14], 8
jb 0x40af16
push dword [ebp - 0x28]
call fcn.0043d3af
add esp, 4
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x40af22
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x44]
push ecx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40af54
push str.CurSID
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x2c], 8
jb 0x40af65
push dword [ebp - 0x40]
call fcn.0043d3af
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret