joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40afca
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp + 0xc]
push esi
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40b023
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x40b150
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push ebx
push ebx
push dword [ebp + 8]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
mov dword [ebp - 4], eax
ja 0x40b23d
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x210]
push eax
mov edi, SysReAllocString
push str..htm
push edi
call fcn.0040afca
test eax, eax
jne 0x40b23d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x210]
push str._shellopencommand
push eax
call esi
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call fcn.0040afca
test eax, eax
jne 0x40b23d
lea eax, [ebp - 0x210]
push 0x466560
push eax
call fcn.0042c6e5
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
jne 0x40b21a
lea eax, [ebp - 0x210]
push 0x46655c
push eax
call fcn.0042c6e5
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
jne 0x40b21a
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [ebp + eax - 0x211]
jmp 0x40b21c
mov byte [edi], bl
push 0x465e98
push edi
call esi
push dword [ebp + 8]
push edi
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40c018
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, dword [ebx]
push 0
add esi, 0x20
push 0
push esi
mov edi, ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp + 0xc]
push 0
lea eax, [edi + 0xf8]
push ecx
push 0x12
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40c0aa
cmp dword [ebp + 0xc], 0x12
jne 0x40c0aa
push 4
lea eax, [edi + 0xf8]
push str.VBRI
push eax
call fcn.0042c760
add esp, 0xc
test eax, eax
jne 0x40c0aa
movsx eax, byte [edi + 0x106]
movzx ecx, byte [edi + 0x107]
shl eax, 8
or eax, ecx
push 1
movzx ecx, byte [edi + 0x108]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 0x109]
shl eax, 8
or eax, ecx
mov dword [edi + 0x120], eax
mov dword [ebx], esi
pop eax
jmp 0x40c0ac
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40c0b3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [eax]
cmp dword [esi + 0x40], 3
jne 0x40c0d2
cmp dword [esi + 0x5c], 3
je 0x40c0dd
add edi, 0x20
jmp 0x40c0e0
cmp dword [esi + 0x5c], 3
jne 0x40c0dd
add edi, 9
jmp 0x40c0e0
add edi, 0x11
push 0
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
push 0
lea ebx, [esi + 0xf8]
push eax
push 0x12
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40c15f
cmp dword [ebp - 4], 0x12
jne 0x40c15f
push 4
push str.Xing
push ebx
call fcn.0042c760
add esp, 0xc
test eax, eax
jne 0x40c15f
movsx eax, byte [esi + 0x100]
movzx ecx, byte [esi + 0x101]
shl eax, 8
or eax, ecx
push 1
movzx ecx, byte [esi + 0x102]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 0x103]
shl eax, 8
or eax, ecx
mov dword [esi + 0x120], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
pop eax
jmp 0x40c168
or dword [esi + 0x120], 0xffffffff
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40c37a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 4
mov esi, ecx
push 0
push edi
mov dword [ebp - 0xc], esi
call fcn.0042bd20
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0xc
cmp dword [ebp + 0x10], 0
jle 0x40c3b0
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call ebx
mov ecx, dword [esi + 0x14]
push 0xa
mov eax, ecx
xor edx, edx
pop esi
and dword [ebp + 0x10], 0
div esi
mov edx, 0x186a0
cmp eax, edx
jae 0x40c3ce
mov dword [ebp - 4], edx
jmp 0x40c3d4
shr ecx, 2
mov dword [ebp - 4], ecx
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 8]
push 0
push eax
push 4
push edi
push dword [ebp + 8]
call esi
mov ecx, dword [ebp - 0xc]
push 4
push edi
mov dword [ebp + 0xc], eax
call fcn.0040d11a
cmp dword [ebp + 0xc], 0
je 0x40c433
cmp dword [ebp - 8], 4
jne 0x40c433
mov eax, dword [edi]
mov ecx, 0xffe00000
and eax, ecx
cmp eax, ecx
je 0x40c438
inc dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 4]
ja 0x40c438
push 1
push 0
push 0xfffffffffffffffd
push dword [ebp + 8]
call ebx
lea eax, [ebp - 8]
push 0
push eax
push 4
push edi
push dword [ebp + 8]
jmp 0x40c3e6
mov ecx, 0xffe00000
mov eax, dword [edi]
pop edi
and eax, ecx
pop esi
sub eax, ecx
pop ebx
neg eax
sbb eax, eax
inc eax
leave
ret 0xc
Function at 0x40d762
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push 0
push 0
push 0
push dword [ebp + 8]
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x10]
push 0xa
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], 0xa
jne 0x40d7e5
push 3
lea eax, [ebp - 0x10]
push 0x466e50
push eax
call fcn.0042c760
add esp, 0xc
test eax, eax
jne 0x40d7e5
cmp byte [ebp - 0xd], 3
je 0x40d7b8
cmp byte [ebp - 0xd], 4
jne 0x40d7e5
movzx ecx, byte [ebp - 0xa]
movzx eax, byte [ebp - 9]
shl ecx, 7
or ecx, eax
movzx eax, byte [ebp - 8]
shl ecx, 7
or ecx, eax
movzx eax, byte [ebp - 7]
shl ecx, 7
or ecx, eax
add ecx, 0xa
cmp dword [edi + 0x14], ecx
sbb eax, eax
not eax
and eax, ecx
jmp 0x40d7e7
xor eax, eax
pop edi
leave
ret 4
Function at 0x40e7de
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
lea eax, [ebp - 4]
push edi
mov ebx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionMCI_Extensions
push eax
push ebx
mov dword [ebp - 8], ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov esi, str.MPEGVideo
jne 0x40e86b
mov ax, word [0x46d64c]
push 0x40
mov word [ebp - 0x118], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0x116]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x10]
mov edi, 0x465ee4
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0
je 0x40e86b
mov ecx, dword [ebp - 8]
push esi
push edi
push ebx
call fcn.0040e8ee
lea eax, [ebp - 4]
mov ebx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionMCI32
push eax
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40e8e9
mov ax, word [0x46d64c]
push 0x40
mov word [ebp - 0x118], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0x116]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x40e8e9
mov ecx, dword [ebp - 8]
mov edi, str.mciqtz32.dll
push edi
push esi
push ebx
call fcn.0040e8ee
mov ecx, dword [ebp - 8]
push edi
push str.MPEGVideo2
push ebx
call fcn.0040e8ee
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40e8ee
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40e93e
cmp byte [esi], 0
je 0x40e93e
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push esi
call fcn.0042c200
pop ecx
inc eax
push eax
push esi
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
jmp 0x40e940
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x4132e9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x4501d8
call fcn.0042b9b8
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x455364
mov dword [esi + 0x5c], 0x455360
lea ecx, [esi + 0x41a8]
mov dword [ebp - 4], 0x2a
call fcn.0041f3d4
lea ecx, [esi + 0x3ecc]
mov byte [ebp - 4], 0x29
call fcn.00422f32
lea ecx, [esi + 0x3bf8]
mov byte [ebp - 4], 0x28
call fcn.0040700e
lea ecx, [esi + 0x3924]
mov byte [ebp - 4], 0x27
call fcn.0040700e
lea ecx, [esi + 0x3648]
mov byte [ebp - 4], 0x26
call fcn.00422f32
lea ecx, [esi + 0x336c]
mov byte [ebp - 4], 0x25
call fcn.00422f32
lea ecx, [esi + 0x3094]
mov byte [ebp - 4], 0x24
call fcn.0041f971
lea ecx, [esi + 0x2dbc]
mov byte [ebp - 4], 0x23
call fcn.0041f971
lea ecx, [esi + 0x2ae4]
mov byte [ebp - 4], 0x22
call fcn.0041f971
lea ecx, [esi + 0x280c]
mov byte [ebp - 4], 0x21
call fcn.0041f971
lea ecx, [esi + 0x2530]
mov byte [ebp - 4], 0x20
call fcn.00422f32
lea ecx, [esi + 0x225c]
mov byte [ebp - 4], 0x1f
call fcn.0040700e
lea ecx, [esi + 0x1df0]
mov byte [ebp - 4], 0x1e
call fcn.0041c6fa
lea ecx, [esi + 0x1b18]
mov byte [ebp - 4], 0x1d
call fcn.0041f971
lea ecx, [esi + 0x1844]
mov byte [ebp - 4], 0x1c
call fcn.0040700e
lea ecx, [esi + 0x156c]
mov byte [ebp - 4], 0x1b
call fcn.0041f971
lea ecx, [esi + 0x1298]
mov byte [ebp - 4], 0x1a
call fcn.0040700e
lea ecx, [esi + 0xfc4]
mov byte [ebp - 4], 0x19
call fcn.0040700e
lea ecx, [esi + 0xcec]
mov byte [ebp - 4], 0x18
call fcn.0041f971
lea ecx, [esi + 0xa14]
mov byte [ebp - 4], 0x17
call fcn.0041f971
lea ecx, [esi + 0x73c]
mov byte [ebp - 4], 0x16
call fcn.0041f971
lea ecx, [esi + 0x464]
mov byte [ebp - 4], 0x15
call fcn.0041f971
lea ecx, [esi + 0x328]
mov byte [ebp - 4], 0x14
call fcn.0040bf3c
lea ecx, [esi + 0x2d0]
mov byte [ebp - 4], 0x13
call fcn.0041a306
lea ecx, [esi + 0x2bc]
mov byte [ebp - 4], 0x12
call fcn.00440d69
lea ecx, [esi + 0x2b8]
mov byte [ebp - 4], 0x11
call fcn.00440d69
lea ecx, [esi + 0x2b4]
mov byte [ebp - 4], 0x10
call fcn.00440d69
lea ecx, [esi + 0x2b0]
mov byte [ebp - 4], 0xf
call fcn.00440d69
lea ecx, [esi + 0x2ac]
mov byte [ebp - 4], 0xe
call fcn.00440d69
lea ecx, [esi + 0x2a4]
mov byte [ebp - 4], 0xd
call fcn.00440d69
lea ecx, [esi + 0x29c]
mov byte [ebp - 4], 0xc
call fcn.00440d69
lea ecx, [esi + 0x294]
mov byte [ebp - 4], 0xb
call fcn.00440d69
lea ecx, [esi + 0x290]
mov byte [ebp - 4], 0xa
call fcn.00440d69
lea ecx, [esi + 0x28c]
mov byte [ebp - 4], 9
call fcn.00440d69
lea ecx, [esi + 0x288]
mov byte [ebp - 4], 8
call fcn.00440d69
lea ecx, [esi + 0x284]
mov byte [ebp - 4], 7
call fcn.00440d69
lea ecx, [esi + 0x280]
mov byte [ebp - 4], 6
call fcn.00440d69
lea ecx, [esi + 0x27c]
mov byte [ebp - 4], 5
call fcn.00440d69
lea ecx, [esi + 0x184]
mov byte [ebp - 4], 4
call fcn.00421889
lea ecx, [esi + 0x148]
mov byte [ebp - 4], 3
call fcn.0043b159
lea ecx, [esi + 0x10c]
mov byte [ebp - 4], 2
call fcn.0043b0bf
lea ecx, [esi + 0xd0]
mov byte [ebp - 4], 1
call fcn.0043b0bf
and byte [ebp - 4], 0
lea ecx, [esi + 0xc8]
call fcn.00440d69
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.004011b6
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x41b813
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
push edi
xor edi, edi
cmp edx, edi
je 0x41b851
mov esi, dword [esp + 0x14]
cmp esi, edi
je 0x41b851
cmp dword [esp + 0x18], edi
jle 0x41b851
mov eax, dword [esp + 0x10]
cmp eax, edi
jle 0x41b849
push ebx
mov ecx, esi
sub edx, esi
mov edi, eax
mov bl, byte [edx + ecx]
xor bl, 0x45
mov byte [ecx], bl
inc ecx
dec eax
jne 0x41b83c
pop ebx
and byte [edi + esi], 0
mov eax, esi
jmp 0x41b853
xor eax, eax
pop edi
pop esi
ret

Function at 0x41bfcc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov dx, word [0x46d64c]
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x102]
mov word [ebp - 0x104], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x40
mov esi, dword [ebp + 8]
pop ecx
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], dx
rep stosd dword es:[edi], eax
test esi, esi
stosw word es:[edi], ax
je 0x41c096
cmp byte [esi], 0
je 0x41c096
mov edi, 0x104
lea eax, [ebp - 0x104]
push edi
push eax
push 0x22
push 0x455648
call fcn.0041b813
lea eax, [ebp - 0x208]
push edi
push eax
push 3
push 0x45566c
call fcn.0041b813
add esp, 0x20
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x104]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x41c096
push esi
call fcn.0042c200
pop ecx
inc eax
push eax
push esi
push 1
lea eax, [ebp - 0x208]
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
jmp 0x41c098
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x41c09c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov dx, word [0x46d64c]
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x102]
mov word [ebp - 0x104], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x40
mov esi, dword [ebp + 8]
pop ecx
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], dx
rep stosd dword es:[edi], eax
test esi, esi
stosw word es:[edi], ax
je 0x41c166
cmp byte [esi], 0
je 0x41c166
mov edi, 0x104
lea eax, [ebp - 0x104]
push edi
push eax
push 0x22
push 0x455648
call fcn.0041b813
lea eax, [ebp - 0x208]
push edi
push eax
push 5
push str.___E
call fcn.0041b813
add esp, 0x20
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x104]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x41c166
push esi
call fcn.0042c200
pop ecx
inc eax
push eax
push esi
push 1
lea eax, [ebp - 0x208]
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
jmp 0x41c168
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41c16c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov dx, word [0x46d64c]
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x106]
mov word [ebp - 0x108], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x20a]
mov word [ebp - 0x20c], dx
mov dword [ebp - 4], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
test edi, edi
je 0x41c241
cmp dword [ebp + 0xc], 0
jle 0x41c241
and byte [edi], 0
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
push eax
push 0x22
push 0x455648
call fcn.0041b813
lea eax, [ebp - 0x20c]
push esi
push eax
push 5
push str.___E
call fcn.0041b813
add esp, 0x20
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x108]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41c241
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x20c]
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
neg eax
sbb eax, eax
not eax
and eax, edi
jmp 0x41c243
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x41c247
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov dx, word [0x46d64c]
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x106]
mov word [ebp - 0x108], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x20a]
mov word [ebp - 0x20c], dx
mov dword [ebp - 4], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
test edi, edi
je 0x41c31c
cmp dword [ebp + 0xc], 0
jle 0x41c31c
and byte [edi], 0
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
push eax
push 0x22
push 0x455648
call fcn.0041b813
lea eax, [ebp - 0x20c]
push esi
push eax
push 3
push 0x45566c
call fcn.0041b813
add esp, 0x20
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x108]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41c31c
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x20c]
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
neg eax
sbb eax, eax
not eax
and eax, edi
jmp 0x41c31e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41c536
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 4
xor edi, edi
pop ebx
cmp dword [ebp + 8], edi
mov dword [ebp - 8], ebx
je 0x41c631
cmp dword [ebp + 0xc], edi
je 0x41c631
mov eax, dword [ebp + 0x10]
movzx ecx, word [eax]
movzx edx, word [eax + 2]
lea ecx, [ecx + ecx*2]
movzx eax, word [eax + 6]
lea ecx, [edx + ecx*4]
imul ecx, ecx, 0x1e
lea esi, [ecx + eax - 0x1e]
lea eax, [ebp + 0x10]
push eax
push 0x2001b
push edi
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41c631
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41c638
mov eax, dword [ebp + 8]
push 0x64
xor edx, edx
pop ecx
div ecx
mov edi, edx
test edi, edi
jbe 0x41c623
cmp edi, 0xa
ja 0x41c623
mov eax, dword [ebp + 8]
xor edx, edx
div ecx
mov ecx, esi
sub ecx, eax
jne 0x41c5e4
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41c61f
test ecx, ecx
jle 0x41c5f0
sub edi, ecx
jns 0x41c5f1
xor edi, edi
jmp 0x41c5f1
dec edi
imul esi, esi, 0x64
lea eax, [ebp + 8]
push ebx
push eax
push ebx
push 0
add esi, edi
push dword [ebp + 0xc]
mov dword [ebp + 8], esi
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
ja 0x41c61f
call fcn.0041c3aa
mov eax, edi
jmp 0x41c633
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0041c3aa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
imul esi, esi, 0x64
lea eax, [ebp + 8]
push ebx
push eax
push ebx
push edi
add esi, 0xa
push dword [ebp + 0xc]
mov dword [ebp + 8], esi
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0xa
pop eax
jmp 0x41c633

Function at 0x420717
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [ecx + 0x2c8]
push esi
cmp eax, 1
je 0x420790
cmp eax, 2
je 0x42078b
mov esi, 0x9c
lea eax, [ebp - 0x9c]
push esi
push 0
push eax
call fcn.0042bd20
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x420778
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
push eax
call esi
test eax, eax
je 0x420790
mov eax, dword [ebp - 0x8c]
dec eax
dec eax
jne 0x420790
cmp dword [ebp - 0x98], 5
jb 0x420790
push 1
pop eax
jmp 0x420792
xor eax, eax
pop esi
leave
ret
Function at 0x42310b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x423163
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x46d5e0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x423156
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x423165
xor eax, eax
pop esi
leave
ret 4

Function at 0x4231c0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
ret
Function at 0x42ce95
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42ceb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042e3eb
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x42ced8
test byte [esp + 8], 2
je 0x42ced8
call fcn.0042e45e
mov dword [eax], 0xd
call fcn.0042e467
mov dword [eax], 5
jmp 0x42ceb1
xor eax, eax
ret
Function at 0x439270
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.0042c060
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x43933b
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 0x43933b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4392ee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4392f9
or bh, 8
and edi, 0x8000000
je 0x439314
mov eax, dword [0x47107c]
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 0x43933b
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