joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4491d1
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x246c
call fcn.0044a6a0
mov eax, dword [0x46a008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2428], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x242c], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x241c], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x2430], eax
xor esi, esi
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x2420], eax
mov eax, dword [ebp + 0x1c]
push 0x3c
mov dword [ebp - 0x2424], eax
lea eax, [ebp - 0x246c]
push esi
push eax
call fcn.0042fb10
add esp, 0xc
mov dword [ebp - 0x246c], 0x3c
cmp dword [ebp - 0x241c], esi
je 0x449263
lea eax, [ebp - 0x410]
mov dword [ebp - 0x2458], 0x101
mov dword [ebp - 0x245c], eax
mov ecx, 0x81
cmp dword [ebp - 0x2420], esi
je 0x449282
lea eax, [ebp - 0x108]
mov dword [ebp - 0x244c], ecx
mov dword [ebp - 0x2450], eax
cmp dword [ebp - 0x2424], esi
je 0x44929c
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x2444], ecx
mov dword [ebp - 0x2448], eax
mov ecx, 0x801
test ebx, ebx
je 0x4492b7
lea eax, [ebp - 0x1414]
mov dword [ebp - 0x243c], ecx
mov dword [ebp - 0x2440], eax
test edi, edi
je 0x4492cd
lea eax, [ebp - 0x2418]
mov dword [ebp - 0x2434], ecx
mov dword [ebp - 0x2438], eax
lea eax, [ebp - 0x246c]
push eax
push 0x90000000
push esi
push dword [ebp - 0x2428]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x44931a
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x56
push str.uriutil.cpp
call fcn.00403c59
jmp 0x4493de
mov ecx, dword [ebp - 0x242c]
test ecx, ecx
je 0x44932c
mov eax, dword [ebp - 0x2460]
mov dword [ecx], eax
mov eax, dword [ebp - 0x241c]
test eax, eax
je 0x449352
push dword [ebp - 0x2458]
push dword [ebp - 0x245c]
push eax
call fcn.004024cf
mov esi, eax
test esi, esi
js 0x4493de
mov eax, dword [ebp - 0x2430]
test eax, eax
je 0x449366
mov cx, word [ebp - 0x2454]
mov word [eax], cx
mov eax, dword [ebp - 0x2420]
test eax, eax
je 0x449388
push dword [ebp - 0x244c]
push dword [ebp - 0x2450]
push eax
call fcn.004024cf
mov esi, eax
test esi, esi
js 0x4493de
mov eax, dword [ebp - 0x2424]
test eax, eax
je 0x4493aa
push dword [ebp - 0x2444]
push dword [ebp - 0x2448]
push eax
call fcn.004024cf
mov esi, eax
test esi, esi
js 0x4493de
test ebx, ebx
je 0x4493c6
push dword [ebp - 0x243c]
push dword [ebp - 0x2440]
push ebx
call fcn.004024cf
mov esi, eax
test esi, esi
js 0x4493de
test edi, edi
je 0x4493de
push dword [ebp - 0x2434]
push dword [ebp - 0x2438]
push edi
call fcn.004024cf
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e000
mov esp, ebp
pop ebp
ret 0x20
Function at 0x4b87e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x4b8805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x4b8878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x4b883a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x4b886d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x4b886b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x4b8831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x4b87fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x401460
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x428666
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esp + 0x14], 0
lea ecx, [esi + 0x2f8]
mov dword [esp + 8], ecx
mov dword [ecx], vtable.CGdiObject.0
mov byte [esp + 0x14], 0x26
call fcn.00423c6c
lea ecx, [esi + 0x2f0]
mov byte [esp + 0x14], 0x24
call fcn.0041ead5
lea ecx, [esi + 0x2ec]
mov byte [esp + 0x14], 0x23
call fcn.0041ead5
lea ecx, [esi + 0x2e0]
mov byte [esp + 0x14], 0x22
call fcn.0041ead5
lea ecx, [esi + 0x2dc]
mov byte [esp + 0x14], 0x21
call fcn.0041ead5
lea ecx, [esi + 0x2c4]
mov byte [esp + 0x14], 0x20
call fcn.0041ead5
lea ecx, [esi + 0x2c0]
mov byte [esp + 0x14], 0x1f
call fcn.0041ead5
lea ecx, [esi + 0x2bc]
mov byte [esp + 0x14], 0x1e
call fcn.0041ead5
lea ecx, [esi + 0x2b8]
mov byte [esp + 0x14], 0x1d
call fcn.0041ead5
lea ecx, [esi + 0x2b4]
mov byte [esp + 0x14], 0x1c
call fcn.0041ead5
lea ecx, [esi + 0x2b0]
mov byte [esp + 0x14], 0x1b
call fcn.0041ead5
lea ecx, [esi + 0x2ac]
mov byte [esp + 0x14], 0x1a
call fcn.0041ead5
lea ecx, [esi + 0x2a8]
mov byte [esp + 0x14], 0x19
call fcn.0041ead5
lea ecx, [esi + 0x2a4]
mov byte [esp + 0x14], 0x18
call fcn.0041ead5
lea ecx, [esi + 0x2a0]
mov byte [esp + 0x14], 0x17
call fcn.0041ead5
lea ecx, [esi + 0x29c]
mov byte [esp + 0x14], 0x16
call fcn.0041ead5
lea ecx, [esi + 0x298]
mov byte [esp + 0x14], 0x15
call fcn.0041ead5
lea ecx, [esi + 0x294]
mov byte [esp + 0x14], 0x14
call fcn.0041ead5
lea ecx, [esi + 0x290]
mov byte [esp + 0x14], 0x13
call fcn.0041ead5
lea ecx, [esi + 0x28c]
mov byte [esp + 0x14], 0x12
call fcn.0041ead5
lea ecx, [esi + 0x288]
mov byte [esp + 0x14], 0x11
call fcn.0041ead5
lea ecx, [esi + 0x284]
mov byte [esp + 0x14], 0x10
call fcn.0041ead5
lea ecx, [esi + 0x280]
mov byte [esp + 0x14], 0xf
call fcn.0041ead5
lea ecx, [esi + 0x27c]
mov byte [esp + 0x14], 0xe
call fcn.0041ead5
lea ecx, [esi + 0x278]
mov byte [esp + 0x14], 0xd
call fcn.0041ead5
lea ecx, [esi + 0x274]
mov byte [esp + 0x14], 0xc
call fcn.0041ead5
lea ecx, [esi + 0x270]
mov byte [esp + 0x14], 0xb
call fcn.0041ead5
lea ecx, [esi + 0x26c]
mov byte [esp + 0x14], 0xa
call fcn.0041ead5
lea ecx, [esi + 0x25c]
mov byte [esp + 0x14], 9
call fcn.0041ead5
lea ecx, [esi + 0x254]
mov byte [esp + 0x14], 8
call fcn.0041ead5
lea ecx, [esi + 0x24c]
mov byte [esp + 0x14], 7
call fcn.0041ead5
lea ecx, [esi + 0x244]
mov byte [esp + 0x14], 6
call fcn.0041ead5
lea ecx, [esi + 0x23c]
mov byte [esp + 0x14], 5
call fcn.0041ead5
lea ecx, [esi + 0x234]
mov byte [esp + 0x14], 4
call fcn.0041ead5
lea ecx, [esi + 0x22c]
mov byte [esp + 0x14], 3
call fcn.0041ead5
lea ecx, [esi + 0x224]
mov byte [esp + 0x14], 2
call fcn.0041ead5
lea ecx, [esi + 0x21c]
mov byte [esp + 0x14], 1
call fcn.0041ead5
lea ecx, [esi + 0x214]
mov byte [esp + 0x14], 0
call fcn.0041ead5
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.0041e133
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x401478
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x428666
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esp + 0x14], 0
lea ecx, [esi + 0x2f8]
mov dword [esp + 8], ecx
mov dword [ecx], vtable.CGdiObject.0
mov byte [esp + 0x14], 0x26
call fcn.00423c6c
lea ecx, [esi + 0x2f0]
mov byte [esp + 0x14], 0x24
call fcn.0041ead5
lea ecx, [esi + 0x2ec]
mov byte [esp + 0x14], 0x23
call fcn.0041ead5
lea ecx, [esi + 0x2e0]
mov byte [esp + 0x14], 0x22
call fcn.0041ead5
lea ecx, [esi + 0x2dc]
mov byte [esp + 0x14], 0x21
call fcn.0041ead5
lea ecx, [esi + 0x2c4]
mov byte [esp + 0x14], 0x20
call fcn.0041ead5
lea ecx, [esi + 0x2c0]
mov byte [esp + 0x14], 0x1f
call fcn.0041ead5
lea ecx, [esi + 0x2bc]
mov byte [esp + 0x14], 0x1e
call fcn.0041ead5
lea ecx, [esi + 0x2b8]
mov byte [esp + 0x14], 0x1d
call fcn.0041ead5
lea ecx, [esi + 0x2b4]
mov byte [esp + 0x14], 0x1c
call fcn.0041ead5
lea ecx, [esi + 0x2b0]
mov byte [esp + 0x14], 0x1b
call fcn.0041ead5
lea ecx, [esi + 0x2ac]
mov byte [esp + 0x14], 0x1a
call fcn.0041ead5
lea ecx, [esi + 0x2a8]
mov byte [esp + 0x14], 0x19
call fcn.0041ead5
lea ecx, [esi + 0x2a4]
mov byte [esp + 0x14], 0x18
call fcn.0041ead5
lea ecx, [esi + 0x2a0]
mov byte [esp + 0x14], 0x17
call fcn.0041ead5
lea ecx, [esi + 0x29c]
mov byte [esp + 0x14], 0x16
call fcn.0041ead5
lea ecx, [esi + 0x298]
mov byte [esp + 0x14], 0x15
call fcn.0041ead5
lea ecx, [esi + 0x294]
mov byte [esp + 0x14], 0x14
call fcn.0041ead5
lea ecx, [esi + 0x290]
mov byte [esp + 0x14], 0x13
call fcn.0041ead5
lea ecx, [esi + 0x28c]
mov byte [esp + 0x14], 0x12
call fcn.0041ead5
lea ecx, [esi + 0x288]
mov byte [esp + 0x14], 0x11
call fcn.0041ead5
lea ecx, [esi + 0x284]
mov byte [esp + 0x14], 0x10
call fcn.0041ead5
lea ecx, [esi + 0x280]
mov byte [esp + 0x14], 0xf
call fcn.0041ead5
lea ecx, [esi + 0x27c]
mov byte [esp + 0x14], 0xe
call fcn.0041ead5
lea ecx, [esi + 0x278]
mov byte [esp + 0x14], 0xd
call fcn.0041ead5
lea ecx, [esi + 0x274]
mov byte [esp + 0x14], 0xc
call fcn.0041ead5
lea ecx, [esi + 0x270]
mov byte [esp + 0x14], 0xb
call fcn.0041ead5
lea ecx, [esi + 0x26c]
mov byte [esp + 0x14], 0xa
call fcn.0041ead5
lea ecx, [esi + 0x25c]
mov byte [esp + 0x14], 9
call fcn.0041ead5
lea ecx, [esi + 0x254]
mov byte [esp + 0x14], 8
call fcn.0041ead5
lea ecx, [esi + 0x24c]
mov byte [esp + 0x14], 7
call fcn.0041ead5
lea ecx, [esi + 0x244]
mov byte [esp + 0x14], 6
call fcn.0041ead5
lea ecx, [esi + 0x23c]
mov byte [esp + 0x14], 5
call fcn.0041ead5
lea ecx, [esi + 0x234]
mov byte [esp + 0x14], 4
call fcn.0041ead5
lea ecx, [esi + 0x22c]
mov byte [esp + 0x14], 3
call fcn.0041ead5
lea ecx, [esi + 0x224]
mov byte [esp + 0x14], 2
call fcn.0041ead5
lea ecx, [esi + 0x21c]
mov byte [esp + 0x14], 1
call fcn.0041ead5
lea ecx, [esi + 0x214]
mov byte [esp + 0x14], 0
call fcn.0041ead5
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.0041e133
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x403300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebp
push esi
push edi
call fcn.0042594a
mov esi, dword [eax + 0xc]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
and ecx, 0xffff
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x403330
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40334f
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push ebx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
lea eax, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [esp + 0x10]
push 0
push ecx
call fcn.00405d00
mov edx, dword [esp + 0x28]
add esp, 8
push ebx
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret 0xc
Function at 0x403440
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x824
xor eax, eax
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x2d
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallE44D28B8_52C8_4C1C_BBA1_C03D1519736C
lea edi, [esp + 0x628]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x54
lea edi, [esp + 0x6de]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x628]
mov ecx, ebx
push eax
call fcn.00405040
test eax, eax
je 0x403606
mov ecx, 0x11
mov esi, str.SOFTWAREUfsoftWFV8.700Version
lea edi, [esp + 0x420]
mov dword [ebx + 0x2cc], 1
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x71
xor eax, eax
lea edi, [esp + 0x464]
xor esi, esi
rep stosd dword es:[edi], eax
mov cx, word [0x4388c4]
lea edi, [esp + 0x21a]
mov word [esp + 0x218], cx
mov ecx, 0x81
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], si
rep stosd dword es:[edi], eax
lea edx, [esp + 0xc]
lea eax, [esp + 0x218]
push edx
lea ecx, [esp + 0x424]
push eax
push ecx
mov ecx, ebx
call fcn.00404fd0
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esp + 0xc]
push str.16.000
push eax
call fcn.0040e56f
add esp, 8
test eax, eax
je 0x4035f2
lea ecx, [esp + 0xc]
push str.15.100
push ecx
call fcn.0040e56f
add esp, 8
test eax, eax
je 0x4035f2
lea edx, [esp + 0xc]
push str.15.000
push edx
call fcn.0040e56f
add esp, 8
test eax, eax
je 0x4035f2
lea eax, [esp + 0xc]
push str.13.100
push eax
call fcn.0040e56f
add esp, 8
test eax, eax
je 0x4035f2
lea ecx, [esp + 0xc]
push str.13.000
push ecx
call fcn.0040e56f
add esp, 8
test eax, eax
je 0x4035f2
lea edx, [esp + 0xc]
push str.12.500
push edx
call fcn.0040e56f
add esp, 8
test eax, eax
je 0x4035f2
lea eax, [esp + 0xc]
push str.12.100
push eax
call fcn.0040e56f
add esp, 8
test eax, eax
je 0x4035f2
lea ecx, [esp + 0xc]
push str.12.000
push ecx
call fcn.0040e56f
add esp, 8
test eax, eax
je 0x4035f2
lea edx, [esp + 0xc]
push str.11.100
push edx
call fcn.0040e56f
add esp, 8
test eax, eax
je 0x4035f2
mov dword [ebx + 0x2d0], esi
pop edi
pop esi
pop ebx
add esp, 0x824
ret
pop edi
mov dword [ebx + 0x2d0], 1
pop esi
pop ebx
add esp, 0x824
ret
xor esi, esi
pop edi
mov dword [ebx + 0x2d0], esi
mov dword [ebx + 0x2cc], esi
pop esi
pop ebx
add esp, 0x824
ret
Function at 0x404a00
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x43c
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x49]
mov byte [esp + 0x48], bl
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x44c]
stosw word es:[edi], ax
stosb byte es:[edi], al
push esi
lea eax, [esp + 0x4c]
push 0x4343fc
push eax
call fcn.0040e5f3
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x1c]
add esp, 0xc
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0x40
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edx, dword [esp + 0x454]
mov ecx, dword [esp + 0x450]
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
and edx, 0xffff
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [esp + 0x44]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x43c
ret
Function at 0x404f40
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
mov edx, dword [esp + 0x5c]
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x64]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push eax
push 0
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x404fbf
cmp dword [esp + 0x6c], 1
jne 0x404fb5
mov ecx, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 8]
push ecx
call edi
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x404fb5
push esi
call edi
pop edi
mov al, 1
pop esi
add esp, 0x54
ret 0x10
pop edi
xor al, al
pop esi
add esp, 0x54
ret 0x10

Function at 0x404fd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405039
mov eax, dword [esp + 0x14]
lea edx, [esp]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40502e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret 0xc

Function at 0x4059f0
Capabilities:
Create process on windows
Set registry value

Disassembly:
sub esp, 0x7c
push esi
push edi
lea eax, [esp + 8]
push 0
mov ecx, 0x1d
mov esi, str.SOFTWAREPoliciesMicrosoftwindows_safercodeidentifiers
lea edi, [esp + 0x14]
push eax
push 0
push 0xf003f
rep movsd dword es:[edi], dword [esi]
push 0
push 0
lea ecx, [esp + 0x28]
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x405a45
pop edi
xor eax, eax
pop esi
add esp, 0x7c
ret
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push 4
push edx
push 4
push 0
push str.PolicyScope
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x405a77
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
add esp, 0x7c
ret
mov eax, dword [esp + 8]
test eax, eax
je 0x405a8e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 1
push 0
push str.stop_msiserver
push 0x434848
push 0x4342d4
push 0
call esi
push 1
push 0
push str.start_msiserver
push 0x434848
push 0x4342d4
push 0
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x7c
ret
Function at 0x41c0a0
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.0040e650
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41c16b
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 0x41c16b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41c11e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41c129
or bh, 8
and edi, 0x8000000
je 0x41c144
mov eax, dword [0x43c3dc]
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 0x41c16b
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 0x41c540
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 0x41c56b
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 0x41c58f
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 0x41c5aa
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