joyce8/EMBER2024-capa huggingface dataset:
Function at 0x491130
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4bf430
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4e2210]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e2210]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x48]
lea esi, [esp + 0x18]
mov ebx, ecx
call fcn.00489fd0
mov dword [esp + 0x40], 0
call fcn.0048a5f0
push str.Netsh.exe
mov edi, esi
call fcn.0048a8a0
lea ecx, [esp + 0x14]
call fcn.00417fe0
mov byte [esp + 0x40], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
lea ecx, [esp + 0x14]
jbe 0x4911d9
push str.advfirewall_firewall_add_rule_name_
call fcn.004058b0
push ebp
lea ecx, [esp + 0x18]
call fcn.00403b80
push str.___dirin_program_
lea ecx, [esp + 0x18]
call fcn.00403b80
push ebx
lea ecx, [esp + 0x18]
call fcn.00403b80
push str.__actionallow
jmp 0x49120a
push str.firewall_add_allowedprogram_program_
call fcn.004058b0
push ebx
lea ecx, [esp + 0x18]
call fcn.00403b80
push str.__name_
lea ecx, [esp + 0x18]
call fcn.00403b80
push ebp
lea ecx, [esp + 0x18]
call fcn.00403b80
push str.__modeENABLE_profileALL
lea ecx, [esp + 0x18]
call fcn.00403b80
lea ecx, [esp + 0x18]
call fcn.00401cb0
push 0
push 0
lea ecx, [esp + 0x1c]
mov ebx, eax
call fcn.004683f0
xor ecx, ecx
mov edi, eax
call fcn.00488e00
add esp, 8
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00417fc0
lea ecx, [esp + 0x18]
call fcn.0042a190
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0049d270
add esp, 0x30
ret

Function at 0x491f30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bbe93
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e2210]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea ebx, [esi + 0x20]
xor ebp, ebp
mov ecx, ebx
mov dword [esi + 0xc], ebp
mov dword [esi], vtable.TiXmlNode.0
call fcn.00405280
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], 1
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x40], ebp
mov dword [esp + 0x1c], ebp
lea edi, [esi + 0x44]
mov dword [esi], vtable.TiXmlElement.0
or eax, 0xffffffff
mov dword [edi + 8], eax
mov dword [edi + 4], eax
lea ecx, [edi + 0x14]
mov dword [edi + 0xc], ebp
mov dword [edi], vtable.TiXmlAttribute.0
call fcn.00405280
lea ecx, [edi + 0x30]
call fcn.00405280
mov dword [edi + 0x10], ebp
mov dword [edi + 0x50], edi
mov dword [edi + 0x4c], edi
mov eax, dword [esp + 0x28]
mov byte [esp + 0x1c], 1
push eax
mov ecx, ebx
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x18], ebp
call fcn.00405110
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x492c50
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4bbe29
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e2210]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
xor edi, edi
lea ecx, [esi + 0x20]
mov dword [esi + 0xc], edi
mov dword [esi], vtable.TiXmlNode.0
call fcn.00405280
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 5
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esp + 0x1c], edi
lea edi, [esi + 0x44]
mov ecx, edi
mov dword [esi], vtable.TiXmlDeclaration.0
call fcn.00405280
lea ebx, [esi + 0x60]
mov ecx, ebx
call fcn.00405280
lea ebp, [esi + 0x7c]
mov ecx, ebp
call fcn.00405280
mov eax, dword [esp + 0x28]
push eax
mov ecx, edi
mov byte [esp + 0x20], 3
call fcn.00405110
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, ebx
call fcn.00405110
mov edx, dword [esp + 0x30]
push edx
mov ecx, ebp
call fcn.00405110
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10

Function at 0x4941f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bfe68
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x4e2210]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push 0
lea ecx, [esp + 0x14]
call fcn.0049c5e0
mov dword [esp + 0x28], 0
mov edi, dword [0x4e78c8]
mov ecx, 0x4e6374
mov dword [esp + 0xc], edi
call fcn.00417250
mov ecx, dword [esp + 0x30]
push eax
call fcn.004171c0
mov esi, eax
test esi, esi
jne 0x49429b
test edi, edi
je 0x494254
mov esi, edi
jmp 0x49429b
lea eax, [esp + 0xc]
push eax
call fcn.004913b0
add esp, 4
cmp eax, 0xffffffff
jne 0x494283
push str.bad_cast
lea ecx, [esp + 0x18]
call fcn.0049d001
push 0x4d7fa8
lea ecx, [esp + 0x18]
push ecx
call fcn.004a4e66
mov esi, dword [esp + 0xc]
mov ecx, esi
mov dword [0x4e78c8], esi
call fcn.00417180
mov ecx, esi
call fcn.00417160
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.0049c601
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
Function at 0x498810
Capabilities:
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x498817
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.00498820
Function at 0x498820
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x498852
lea esp, [esp]
test cl, 3
je 0x498852
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4c5678]
add ecx, 1
sub esi, 1
jne 0x498830
cmp esi, 0x20
push ebx
push edi
jb 0x498a3c
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4c5a78]
xor edx, dword [ebx*4 + 0x4c5e78]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4c5678]
add ecx, 4
xor edx, dword [eax*4 + 0x4c6278]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4c5a78]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4c5e78]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4c5678]
add ecx, 4
xor eax, dword [edx*4 + 0x4c6278]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4c5a78]
xor edx, dword [ebx*4 + 0x4c5e78]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4c5678]
xor edx, dword [eax*4 + 0x4c6278]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4c5a78]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4c5e78]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4c5678]
xor eax, dword [edx*4 + 0x4c6278]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4c5a78]
xor edx, dword [ebx*4 + 0x4c5e78]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4c5678]
xor edx, dword [eax*4 + 0x4c6278]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4c5a78]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4c5e78]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4c5678]
and edx, 0xff
xor eax, dword [edx*4 + 0x4c6278]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4c5a78]
xor edx, dword [ebx*4 + 0x4c5e78]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4c5678]
add ecx, 4
xor edx, dword [eax*4 + 0x4c6278]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4c5a78]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4c5e78]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4c5678]
and edx, 0xff
xor eax, dword [edx*4 + 0x4c6278]
sub edi, 1
jne 0x498862
cmp esi, 4
jb 0x498a89
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x4c5a78]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x4c5e78]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4c5678]
and eax, 0xff
xor edi, dword [eax*4 + 0x4c6278]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x498a46
test esi, esi
pop edi
pop ebx
je 0x498aad
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4c5678]
add ecx, 1
sub esi, 1
jne 0x498a90
not eax
pop esi
ret
Function at 0x49b21b
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4e2210]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0049b15a
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0049d120
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x49b26a
cmp dword [ebp - 0x1c], 5
jb 0x49b282
jmp 0x49b27e
cmp dword [ebp - 0x10], 1
jne 0x49b282
cmp dword [ebp - 0x1c], 4
ja 0x49b27e
jne 0x49b282
cmp dword [ebp - 0x18], 0
jbe 0x49b282
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4c276c
call fcn.00424600
test eax, eax
jge 0x49b2a3
mov byte [0x4e7860], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0049d270
add ebp, 0x78
leave
ret

Function at 0x49d270
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4e2210]
jne 0x49d27a
repz ret
jmp fcn.004a85c4

Function at 0x4a27ed
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4a281a
call fcn.004a6637
mov dword [eax], esi
call fcn.004a6624
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0049fb0a
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4a27f6
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4a2849
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a664a
pop ecx
call fcn.004a6624
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4a2870
test al, 1
je 0x4a2870
test byte [esp + 0xc], 2
je 0x4a2870
call fcn.004a6637
mov dword [eax], 5
call fcn.004a6624
mov dword [eax], 0xd
jmp 0x4a2840
xor eax, eax
pop esi
ret
Function at 0x4a463d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4a467a
cmp dword [ebp + 0x14], edi
je 0x4a467a
cmp ecx, edi
jne 0x4a4681
call fcn.004a6624
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0049fb0a
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4a4695
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4a46b6
cmp ebx, 0xffffffff
je 0x4a46a5
push ebx
push edi
push ecx
call fcn.0049d120
add esp, 0xc
cmp esi, edi
je 0x4a4662
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4a4662
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4a46d2
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4a46d9
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4a47ca
test word [esi + 0xc], 0x10c
je 0x4a472d
mov eax, dword [esi + 4]
test eax, eax
je 0x4a472d
jl 0x4a482b
cmp ebx, eax
mov edi, ebx
jb 0x4a46fe
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4a47d2
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0049d1f5
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4a47c2
cmp ebx, dword [ebp - 0xc]
jb 0x4a479a
cmp dword [ebp - 0xc], 0
je 0x4a4757
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4a474c
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4a4753
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4a4762
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4a4762
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4a47fe
push eax
push dword [ebp - 8]
push esi
call fcn.004b0fd0
pop ecx
push eax
call fcn.004b2317
add esp, 0xc
test eax, eax
je 0x4a483d
cmp eax, 0xffffffff
je 0x4a482b
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4a47c2
push esi
call fcn.004b1c36
cmp eax, 0xffffffff
pop ecx
je 0x4a482f
cmp dword [ebp - 4], 0
je 0x4a47fe
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4a46e1
mov eax, dword [ebp + 0x14]
jmp 0x4a467c
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a47e9
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0049d120
add esp, 0xc
call fcn.004a6624
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4a4672
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a4814
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0049d120
add esp, 0xc
call fcn.004a6624
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4a4672
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4a467c
or dword [esi + 0xc], 0x10
jmp 0x4a482f
Function at 0x4a71d9
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4e2640]
je 0x4a71f4
inc edi
cmp edi, 0x17
jb 0x4a71e5
cmp edi, 0x17
jae 0x4a7374
push ebp
push 3
call fcn.004b3502
cmp eax, 1
pop ecx
je 0x4a7340
push 3
call fcn.004b3502
test eax, eax
pop ecx
jne 0x4a7228
cmp dword [0x4e2134], 1
je 0x4a7340
cmp ebx, 0xfc
je 0x4a7373
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4e6600
push ebp
call fcn.004a8465
add esp, 0xc
test eax, eax
je 0x4a725e
push esi
push esi
push esi
push esi
push esi
call fcn.0049fa0e
add esp, 0x14
push 0x104
mov esi, 0x4e6619
push esi
push 0
mov byte [0x4e671d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4a72a2
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004a8465
add esp, 0xc
test eax, eax
je 0x4a72a2
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0049fa0e
add esp, 0x14
push esi
call fcn.0049da00
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4a72e7
push esi
call fcn.0049da00
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4e6914
push 0x4c38cc
sub ecx, eax
push ecx
push eax
call fcn.004a2be5
add esp, 0x14
test eax, eax
je 0x4a72e7
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0049fa0e
add esp, 0x14
jmp 0x4a72e9
xor esi, esi
push 0x4c38c8
push ebx
push ebp
call fcn.004ad5c8
add esp, 0xc
test eax, eax
je 0x4a7309
push esi
push esi
push esi
push esi
push esi
call fcn.0049fa0e
add esp, 0x14
push dword [edi*8 + 0x4e2644]
push ebx
push ebp
call fcn.004ad5c8
add esp, 0xc
test eax, eax
je 0x4a732b
push esi
push esi
push esi
push esi
push esi
call fcn.0049fa0e
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004b3345
add esp, 0xc
jmp 0x4a7373
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4a7373
cmp ebp, 0xffffffff
je 0x4a7373
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4e2644]
push dword [esi]
call fcn.0049da00
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4b3345
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004a7d9d
xor ebx, ebx
cmp dword [0x4e7100], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4b341b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4b34fb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4b34fb
push eax
call fcn.004a7d2f
mov dword [esp], 0x4c4480
push edi
mov dword [0x4e7100], eax
call esi
push eax
call fcn.004a7d2f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4e7104], eax
call esi
push eax
call fcn.004a7d2f
mov dword [0x4e7108], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0049fdae
test eax, eax
pop ecx
pop ecx
je 0x4b33e9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0049fa0e
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4b341b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004a7d2f
cmp eax, ebx
pop ecx
mov dword [0x4e7110], eax
je 0x4b341b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004a7d2f
pop ecx
mov dword [0x4e710c], eax
mov eax, dword [0x4e710c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4b34a0
cmp dword [0x4e7110], ecx
je 0x4b34a0
push eax
call fcn.004a7da6
push dword [0x4e7110]
mov esi, eax
call fcn.004a7da6
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4b34a0
cmp edi, ebx
je 0x4b34a0
call esi
cmp eax, ebx
je 0x4b346d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4b346d
test byte [ebp - 0x18], 1
jne 0x4b34a0
lea eax, [ebp - 0x10]
push eax
call fcn.0049fde5
test eax, eax
pop ecx
je 0x4b3488
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0049fa0e
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4b3497
or dword [ebp + 0x10], 0x200000
jmp 0x4b34db
or dword [ebp + 0x10], 0x40000
jmp 0x4b34db
mov eax, dword [0x4e7104]
cmp eax, dword [ebp - 8]
je 0x4b34db
push eax
call fcn.004a7da6
cmp eax, ebx
pop ecx
je 0x4b34db
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4b34db
mov eax, dword [0x4e7108]
cmp eax, dword [ebp - 8]
je 0x4b34db
push eax
call fcn.004a7da6
cmp eax, ebx
pop ecx
je 0x4b34db
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4e7100]
call fcn.004a7da6
cmp eax, ebx
pop ecx
je 0x4b34fb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4b34fd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41aa78
Capabilities:
Execute syscall

Disassembly:
add al, 0x21
cmp dword [ebx], esp
xchg edx, eax
add cl, byte [edx]
or ah, byte [eax]
add al, 0x39
add al, byte [edx]
Function at 0x4136e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x413739
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x413739
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x41372a
cmp esi, edx
jae 0x413739
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x413718
cmp esi, edx
jae 0x413739
cmp word [esi], 0
je 0x413739
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x413b00
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x5923e4]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov ebx, ecx
mov dword [esp + 8], 0
mov ecx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 4]
or eax, 0x2001f
mov dword [esp + 0xc], ecx
push eax
push ecx
push dword [ebx]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call fcn.00413a10
mov esi, eax
test esi, esi
je 0x413b81
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x413b68
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004dbc7c
mov esp, ebp
pop ebp
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push dword [esp + 0x2c]
call edi
test eax, eax
jne 0x413be9
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.00413b00
mov esi, eax
test esi, esi
jne 0x413c3b
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x2c]
call edi
test eax, eax
je 0x413bb0
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x413c02
push eax
call esi
mov dword [esp + 0x10], 0
push dword [esp + 0xc]
mov ecx, ebx
mov dword [esp + 0x18], 0
call fcn.004137e0
mov ecx, dword [esp + 0x10]
mov edi, eax
test ecx, ecx
je 0x413c22
push ecx
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004dbc7c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x413b68
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004dbc7c
mov esp, ebp
pop ebp
ret 4
Function at 0x416460
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540c5b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5923e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov byte [ebp - 0x231], cl
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
nop word [eax + eax]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00515e40
add esp, 0xc
mov dword [ebp - 0x228], 0x104
lea eax, [ebp - 0x230]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x416604
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416506
sub eax, edx
mov ecx, edi
mov edx, dword [edi + 0x10]
sar eax, 1
cmp dword [edi + 0x14], 8
jb 0x416522
mov ecx, dword [edi]
cmp edx, eax
jne 0x4165bb
push edx
lea edx, [ebp - 0x218]
call fcn.004294c0
add esp, 4
test eax, eax
jne 0x4165bb
xorps xmm0, xmm0
mov dword [ebp - 0x21c], eax
movq qword [ebp - 0x224], xmm0
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
cmp byte [ebp - 0x231], 0
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x224]
mov edx, dword [ebp + 8]
je 0x416583
push 0x20119
jmp 0x416588
push 0x20219
push eax
call fcn.0044a070
add esp, 8
test al, al
jne 0x4165c1
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x4165ac
push eax
call ebx
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
jmp 0x4164b0
inc esi
jmp 0x4164b0
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4165de
lock inc dword [eax + 4]
mov eax, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x224]
call fcn.00415cf0
mov eax, dword [ebp - 0x224]
add esp, 8
test eax, eax
je 0x416604
push eax
call ebx
mov eax, dword [ebp + 8]
test eax, eax
je 0x416615
push eax
call ebx
mov dword [ebp + 8], 0
mov dword [ebp + 0xc], 0
mov dword [ebp - 4], 4
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x41664b
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x41664b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x41664b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004dbc7c
mov esp, ebp
pop ebp
ret