joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49f150
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e6b98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
xor ebx, ebx
push 0x50a2ac
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], ebx
call fcn.004d369c
mov esi, eax
cmp esi, 0xffffffff
jle 0x49f1db
push esi
lea eax, [esp + 0xc]
push ebx
push eax
lea ecx, [esp + 0x28]
call fcn.004d34f0
mov ecx, dword [esp + 0x20]
push eax
mov byte [esp + 0x18], 1
call fcn.004d4ac6
lea ecx, [esp + 8]
mov byte [esp + 0x14], bl
call fcn.004d498d
inc esi
lea ecx, [esp + 0x20]
push esi
push ecx
lea ecx, [esp + 0x24]
call fcn.004d34cd
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 2
call fcn.004d4ac6
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], bl
call fcn.004d498d
push 0x50a2ac
lea ecx, [esp + 0x20]
call fcn.004d369c
mov esi, eax
cmp esi, 0xffffffff
jle 0x49f248
push esi
lea edx, [esp + 0x24]
push ebx
push edx
lea ecx, [esp + 0x28]
call fcn.004d34f0
mov ecx, dword [esp + 0x24]
push eax
mov byte [esp + 0x18], 3
call fcn.004d4ac6
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], bl
call fcn.004d498d
inc esi
lea eax, [esp + 0x20]
push esi
push eax
lea ecx, [esp + 0x24]
call fcn.004d34cd
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 4
call fcn.004d4ac6
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], bl
call fcn.004d498d
push 0x50a2ac
lea ecx, [esp + 0x20]
call fcn.004d369c
mov esi, eax
cmp esi, 0xffffffff
jle 0x49f2b5
push esi
lea ecx, [esp + 0x24]
push ebx
push ecx
lea ecx, [esp + 0x28]
call fcn.004d34f0
mov ecx, dword [esp + 0x28]
push eax
mov byte [esp + 0x18], 5
call fcn.004d4ac6
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], bl
call fcn.004d498d
inc esi
lea edx, [esp + 0x20]
push esi
push edx
lea ecx, [esp + 0x24]
call fcn.004d34cd
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 6
call fcn.004d4ac6
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], bl
call fcn.004d498d
push 0x50a2ac
lea ecx, [esp + 0x20]
call fcn.004d369c
mov esi, eax
cmp esi, 0xffffffff
jle 0x49f322
push esi
lea eax, [esp + 0x24]
push ebx
push eax
lea ecx, [esp + 0x28]
call fcn.004d34f0
mov ecx, dword [esp + 0x2c]
push eax
mov byte [esp + 0x18], 7
call fcn.004d4ac6
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], bl
call fcn.004d498d
inc esi
lea ecx, [esp + 0x20]
push esi
push ecx
lea ecx, [esp + 0x24]
call fcn.004d34cd
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 8
call fcn.004d4ac6
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], bl
call fcn.004d498d
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x1c]
push edx
call fcn.004d4ac6
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.004d498d
mov ecx, dword [esp + 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4a26a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e6ff3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.004c12c4
lea ecx, [esp + 0xc]
mov dword [esi + 0x34], eax
call fcn.004c0a70
mov edi, dword [0x51b8a0]
lea ecx, [esp + 8]
call fcn.004c0a70
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x4a26ec
inc eax
mov dword [edi + 4], eax
lea ecx, [esp + 8]
call fcn.004c0b0c
lea ecx, [esp + 0xc]
call fcn.004c0b0c
lea eax, [esi + 4]
lea ecx, [esi + 0x14]
lea edx, [esi + 0x18]
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
lea eax, [esi + 8]
lea ecx, [esi + 0x24]
lea edx, [esi + 0x28]
xor edi, edi
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], edx
mov dword [eax], edi
mov eax, dword [esi + 0x20]
push edi
push edi
mov dword [eax], edi
mov ecx, dword [esi + 0x30]
push edi
mov dword [esp + 0x28], edi
mov dword [ecx], edi
mov ecx, esi
call fcn.004116b0
mov cl, byte [esp + 0x24]
xor eax, eax
test cl, 1
mov dword [esi], 0x4f23fc
jne 0x4a275a
mov eax, 4
test cl, 2
jne 0x4a2761
or al, 2
mov edx, dword [esi + 0xc]
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], 0x20
mov dword [esi + 0x44], eax
mov dword [edx], edi
mov eax, dword [esi + 0x1c]
mov dword [eax], edi
mov ecx, dword [esi + 0x2c]
mov dword [ecx], edi
mov edx, dword [esi + 0x10]
mov dword [edx], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov ecx, dword [esi + 0x30]
mov eax, esi
mov dword [ecx], edi
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x4b25b6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4b25d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b3d4a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4b25f9
test byte [esp + 8], 2
je 0x4b25f9
call fcn.004b3dbd
mov dword [eax], 0xd
call fcn.004b3dc6
mov dword [eax], 5
jmp 0x4b25d2
xor eax, eax
ret
Function at 0x4d2690
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004b04f0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4d275b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4d275b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4d270e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4d2719
or bh, 8
and edi, 0x8000000
je 0x4d2734
mov eax, dword [0x51d29c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4d275b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d2b30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4d2b5b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4d2b7f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4d2b9a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x4d636d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4d638f
cmp dword [edi + 0x3c], 0
jne 0x4d638f
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004dd8f5
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004d63bc
pop edi
pop esi
pop ebx
ret 8

Function at 0x4d66fc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4e7540
call fcn.004b2a88
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004dd8f5
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x4d673b
call fcn.004dd8f5
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4d6749
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4d6757
or eax, 0xffffffff
jmp 0x4d683f
mov ecx, esi
call fcn.004d6672
mov dword [ebp - 0x14], eax
call fcn.004d752d
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x4d678e
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4d678e
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.004d74e1
push dword [ebp - 0x14]
call fcn.004d7013
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004d640a
cmp eax, edi
je 0x4d6801
test byte [esi + 0x24], 0x10
je 0x4d67cf
push 4
mov ecx, esi
pop ebx
call fcn.004d5f23
test ah, 1
je 0x4d67c7
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004d9068
cmp dword [esi + 0x1c], edi
je 0x4d6801
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004d6009
jmp 0x4d6801
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x4d6815
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4d682e
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4d682e
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.004d66ac
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4d8f16
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4d8f58
call fcn.004dd8f5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d8f58
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d8f4f
xor eax, eax
jmp 0x4d8f60
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d8f66
pop edi
pop esi
pop ebx
ret 4
Function at 0x41c500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427850], 0
jne 0x41c581
cmp dword [0x427870], 0
jne 0x41c530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427870], eax
test eax, eax
jne 0x41c530
push str.GetEnvironmentStrings_failed
call fcn.0041bd1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427870]
jmp 0x41c544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c53c
lea edi, [ebp + 1]
push edi
call fcn.004161a8
pop ecx
mov ebx, eax
mov dword [0x427854], ebx
test ebx, ebx
jne 0x41c56e
xor eax, eax
jmp 0x41c644
push edi
mov edx, dword [0x427870]
push edx
push ebx
call fcn.00416754
add esp, 0xc
jmp 0x41c5a1
xor esi, esi
mov ebx, dword [0x427850]
jmp 0x41c59b
push eax
call fcn.004168a4
pop ecx
test eax, eax
jne 0x41c597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c58b
lea ebx, [esi + 4]
push 4
mov dword [0x427858], ebx
inc ebx
push ebx
call fcn.00415c80
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41c5c4
xor eax, eax
jmp 0x41c644
cmp dword [0x427850], 0
jne 0x41c5f5
xor esi, esi
mov ebx, dword [0x427854]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41c5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c5dc
jmp 0x41c626
xor esi, esi
mov ebx, dword [0x427850]
mov eax, dword [esp]
mov edi, eax
jmp 0x41c620
push eax
call fcn.004168a4
pop ecx
test eax, eax
je 0x41c615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41c619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c604
mov eax, dword [0x427850]
test eax, eax
je 0x41c636
push eax
call fcn.004161b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427850], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..idata
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x2a307f85
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x2ac27429
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401130
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp edi, 0x1cba473
jbe 0x40115a
xor eax, eax
pop esi
pop ecx
ret
cmp esi, 0xffffffff
je 0x401155
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 8]
push ecx
push edi
push edx
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [esp + 4], edi
pop esi
sete al
pop ecx
ret

Function at 0x4012e0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push esi
xor esi, esi
push esi
push 1
push esi
push esi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4012fa
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0x94
push 0x411068
push edx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x40137b
mov ecx, dword [esp + 8]
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40137b
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 4]
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40137b
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 4]
push 0
push 0
push edx
push 0x80
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
test eax, eax
je 0x40137b
mov esi, 1
mov eax, dword [esp + 4]
test eax, eax
je 0x40138a
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 8]
test eax, eax
je 0x40139b
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x401400
Capabilities:
Check if file exists
Create http request
Create process on windows
Delete file
Get common file path
Get file attributes
Read data from internet
Receive data

Disassembly:
sub esp, 0x44c
mov eax, dword [0x410040]
xor eax, esp
mov dword [esp + 0x448], eax
mov eax, dword [esp + 0x454]
push ebx
push ebp
mov ebp, dword [esp + 0x458]
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push 1
push 0x40ebc8
mov ebx, ecx
mov dword [esp + 0x30], eax
call dword [sym.imp.WININET.dll_InternetOpenW]
lea ecx, [ebp + 0xc800]
push ecx
mov edi, eax
call fcn.004023f2
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], esi
cmp edi, esi
je 0x4015f8
push esi
push 0x80000000
push esi
push esi
push ebx
push edi
mov dword [esp + 0x2c], esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, eax
test ebx, ebx
je 0x4014a7
lea esp, [esp]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0xc800
lea ecx, [esi + eax]
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [esp + 0x14]
add esi, eax
test eax, eax
jbe 0x4014a7
cmp esi, ebp
jb 0x401480
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
push edi
call ebx
cmp esi, ebp
jne 0x4015f8
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push edx
push ebp
push eax
call fcn.004012e0
add esp, 0xc
test eax, eax
je 0x4015f8
lea ecx, [esp + 0x250]
push ecx
push 0
push 0
push 0x801a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x4015f8
lea edx, [esp + 0x250]
call fcn.004013b0
push edx
push str._sSmadavSmadavUpdaterMain.exe
mov ecx, 0x104
lea ebx, [esp + 0x50]
call fcn.00401090
add esp, 8
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401531
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esp + 0x10]
push edx
mov edi, ebp
lea eax, [esp + 0x4c]
call fcn.00401130
add esp, 4
test eax, eax
je 0x4015f8
mov dword [esp + 0x18], 1
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
mov ecx, dword [str.open]
mov edx, dword [0x40ec3c]
mov dword [esp + 0x20], ecx
mov cx, word [0x40ec40]
mov word [esp + 0x28], cx
xor ecx, ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x2a], ecx
mov dword [esp + 0x2e], ecx
mov dword [esp + 0x32], ecx
mov dword [esp + 0x36], ecx
mov dword [esp + 0x3a], ecx
mov dword [esp + 0x3e], ecx
mov dword [esp + 0x42], ecx
mov word [esp + 0x46], cx
test eax, eax
jne 0x4015dd
lea eax, [esp + 0x20]
lea edx, [ecx + 0x14]
mov esi, str.runas
mov ecx, eax
sub esi, ecx
lea ecx, [edx + 0x7fffffea]
test ecx, ecx
je 0x4015d1
movzx ecx, word [esi + eax]
test cx, cx
je 0x4015d1
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4015b1
jmp 0x4015d5
test edx, edx
jne 0x4015d8
sub eax, 2
xor edx, edx
mov word [eax], dx
push 1
push 0
push str._NOCLSMADAVAPPLICATIONUPDATER
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [esp + 0x10]
push edx
call fcn.00402457
mov ecx, dword [esp + 0x45c]
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004021fc
add esp, 0x44c
ret
Function at 0x401c60
Capabilities:
Check internet connectivity via wininet

Disassembly:
sub esp, 0x268
mov eax, dword [0x410040]
xor eax, esp
mov dword [esp + 0x260], eax
push esi
lea eax, [esp + 8]
mov esi, str.http:__
mov ecx, eax
mov edx, 0x7d0
sub esi, ecx
jmp 0x401c90
lea ecx, [edx + 0x7ffff82e]
test ecx, ecx
je 0x401cb0
movzx ecx, word [esi + eax]
test cx, cx
je 0x401cb0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x401c90
jmp 0x401cb4
test edx, edx
jne 0x401cb7
sub eax, 2
xor edx, edx
mov word [eax], dx
push str.mencapai.com
lea eax, [esp + 0xc]
call fcn.00401000
inc dword [0x411e48]
push 0
push 1
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetCheckConnectionW]
test eax, eax
je 0x401d07
cmp dword [0x411e4c], 2
jne 0x401d01
lea ecx, [esp + 8]
push ecx
call fcn.00401630
add esp, 4
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
inc dword [0x411e4c]
mov ecx, dword [esp + 0x264]
pop esi
xor ecx, esp
mov eax, 1
call fcn.004021fc
add esp, 0x268
ret

Function at 0x4021fc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410040]
jne 0x402206
repz ret
jmp fcn.004029f8
Function at 0x40a53c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040506b
and dword [ebp - 4], 0
cmp dword [0x411ba0], 0
mov ebx, eax
jne 0x40a5ed
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a69e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a69e
push eax
call fcn.00404ff9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x411ba0], eax
call esi
push eax
call fcn.00404ff9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x411ba4], eax
call esi
push eax
call fcn.00404ff9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x411ba8], eax
call esi
push eax
call fcn.00404ff9
pop ecx
mov dword [0x411bb0], eax
test eax, eax
je 0x40a5ed
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404ff9
pop ecx
mov dword [0x411bac], eax
mov eax, dword [0x411bac]
cmp eax, ebx
je 0x40a645
cmp dword [0x411bb0], ebx
je 0x40a645
push eax
call fcn.00405074
push dword [0x411bb0]
mov esi, eax
call fcn.00405074
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a645
test edi, edi
je 0x40a645
call esi
test eax, eax
je 0x40a63c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a63c
test byte [ebp - 0xc], 1
jne 0x40a645
or dword [ebp + 0x10], 0x200000
jmp 0x40a67e
mov eax, dword [0x411ba4]
cmp eax, ebx
je 0x40a67e
push eax
call fcn.00405074
pop ecx
test eax, eax
je 0x40a67e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a67e
mov eax, dword [0x411ba8]
cmp eax, ebx
je 0x40a67e
push eax
call fcn.00405074
pop ecx
test eax, eax
je 0x40a67e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x411ba0]
call fcn.00405074
pop ecx
test eax, eax
je 0x40a69e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a6a0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret