joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402580
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x5441b4]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x41a]
push ecx
mov word [ebp - 0x41c], ax
call fcn.004be120
add esp, 0xc
push esi
lea edx, [ebp - 0x41c]
push 0x50b23c
push edx
call fcn.004b7011
add esp, 0xc
lea eax, [ebp - 0x66c]
push eax
lea ecx, [ebp - 0x41c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x402715
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x212]
push eax
mov word [ebp - 0x214], dx
call fcn.004be120
add esp, 0xc
lea ecx, [ebp - 0x66c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40270e
mov edi, edi
mov ecx, 0x50b678
lea eax, [ebp - 0x640]
jmp 0x402630
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402656
test dx, dx
je 0x402652
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402656
add eax, 4
add ecx, 4
test dx, dx
jne 0x402630
xor eax, eax
jmp 0x40265b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4026f8
mov ecx, 0x50b248
lea eax, [ebp - 0x640]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402696
test dx, dx
je 0x402692
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402696
add eax, 4
add ecx, 4
test dx, dx
jne 0x402670
xor eax, eax
jmp 0x40269b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4026f8
push 0x104
lea edx, [ebp - 0x214]
push 0
push edx
call fcn.004be120
add esp, 0xc
lea eax, [ebp - 0x640]
push eax
push esi
lea ecx, [ebp - 0x214]
push 0x50b250
push ecx
call fcn.004b7011
add esp, 0x10
test byte [ebp - 0x66c], 0x10
je 0x4026eb
lea edx, [ebp - 0x214]
push edx
call fcn.00402580
add esp, 4
jmp 0x4026f8
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x66c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402620
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004b6111
mov esp, ebp
pop ebp
ret
Function at 0x402730
Capabilities:
Hash data with md5
Print debug messages
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ecf60
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x5441b4]
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 eax, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 8
jb 0x402789
mov eax, dword [eax]
push 0x50b25c
push eax
call fcn.004b72a3
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x4027d0
push 0x50b264
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
lea edi, [ebp - 0x2c]
mov byte [esi], 0
call fcn.004015f0
cmp dword [ebp - 0x18], 0x10
jb 0x4028c0
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x4028b8
push 0x100000
mov byte [ebp - 0xb4], 0
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], 0x67452301
mov dword [ebp - 0x64], 0xefcdab89
mov dword [ebp - 0x60], 0x98badcfe
mov dword [ebp - 0x5c], 0x10325476
call fcn.004b7340
push edi
mov ebx, eax
call fcn.004b73d4
add esp, 8
test eax, eax
jne 0x402840
push edi
push 0x100000
push 1
push ebx
call fcn.004b768b
add esp, 0x10
test eax, eax
je 0x402840
push ebx
lea esi, [ebp - 0xb4]
call fcn.0042dde0
push edi
call fcn.004b73d4
add esp, 4
test eax, eax
je 0x402812
push edi
call fcn.004b7715
push ebx
call fcn.004b7789
add esp, 8
lea ecx, [ebp - 0xb4]
call fcn.0042dea0
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0xb4]
call fcn.0042e030
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004015f0
mov ebx, 0x10
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], ebx
jb 0x402890
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b6106
add esp, 4
mov esi, dword [ebp - 0xb8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
lea edi, [ebp - 0x2c]
mov byte [esi], 0
call fcn.004015f0
cmp dword [ebp - 0x18], ebx
jb 0x4028c0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b6106
add esp, 4
mov eax, esi
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.004b6111
mov esp, ebp
pop ebp
ret
Function at 0x402910
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
push edi
mov ebx, eax
jb 0x402927
mov eax, dword [esi]
jmp 0x402929
mov eax, esi
push 0x50b25c
push eax
call fcn.004b72a3
mov edi, eax
add esp, 8
test edi, edi
jne 0x40297f
mov ecx, dword [ebp + 0xc]
push 8
push 0x50b288
call fcn.004073c0
cmp dword [esi + 0x14], 8
jb 0x402954
mov esi, dword [esi]
push esi
push str.UncmpZipFile
push str.PublicCommonCommonFun.cpp
mov edx, 0xb5
mov esi, 2
mov eax, 0x547e58
call fcn.0042a050
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 2
lea eax, [ebp - 4]
push 1
push eax
call fcn.004b768b
push edi
call fcn.004b7715
mov ecx, dword [ebp + 0x10]
add esp, 0x14
cmp dword [ecx], 0
jne 0x402a94
mov ax, word [ebp - 4]
cmp al, 0x37
jne 0x4029bd
cmp ah, 0x7a
jne 0x4029ca
mov ecx, 8
cmp dword [ebx + 0x14], ecx
jb 0x4029e2
mov eax, dword [ebx]
jmp 0x4029e4
cmp al, 0x50
jne 0x4029ca
cmp ah, 0x4b
je 0x402a53
mov ecx, dword [ebp + 0xc]
push 8
push str._rN_e
call fcn.004073c0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
cmp dword [esi + 0x14], ecx
jb 0x4029ed
mov edx, dword [esi]
jmp 0x4029ef
mov edx, esi
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push ecx
push eax
mov ecx, edi
call fcn.00466ce0
add esp, 8
test al, al
jne 0x402a94
push edi
mov edx, 0x50b320
call fcn.00407510
mov eax, 8
cmp dword [ebx + 0x14], eax
jb 0x402a20
mov ebx, dword [ebx]
cmp dword [esi + 0x14], eax
jb 0x402a27
mov esi, dword [esi]
push ebx
push esi
push 0x50b338
push str.PublicCommonCommonFun.cpp
mov edx, 0xc8
mov esi, 2
mov eax, 0x547e58
call fcn.0042a050
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 8
cmp dword [ebx + 0x14], eax
jb 0x402a5f
mov ebx, dword [ebx]
cmp dword [esi + 0x14], eax
jb 0x402a66
mov esi, dword [esi]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
push ecx
mov ecx, dword [eax]
push ebx
push esi
call fcn.00449ae0
add esp, 0xc
test al, al
jne 0x402a94
mov edx, dword [ebp + 0xc]
push edx
mov edx, 0x50b378
call fcn.00407510
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403ee0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb7d8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5441b4]
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 edx, 0x545640
lea ecx, [ebp - 0x5c]
call fcn.0040de10
push eax
xor esi, esi
mov eax, str.config.ini
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], esi
call fcn.004044b0
add esp, 4
mov ebx, 8
mov byte [ebp - 4], 2
cmp dword [ebp - 0x48], ebx
jb 0x403f48
mov eax, dword [ebp - 0x5c]
push eax
call fcn.004b6106
add esp, 4
xor eax, eax
xor ecx, ecx
xor edx, edx
mov edi, 7
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], esi
mov word [ebp - 0x5c], cx
mov word [ebp - 0x24], dx
cmp dword [ebp - 0x64], ebx
jae 0x403f7c
lea eax, [ebp - 0x78]
push eax
push 9
lea eax, [ebp - 0x24]
push eax
push 0x50b630
push 0x50b634
push 0x50b64c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ecx, ecx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], esi
mov word [ebp - 0x40], cx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x403fb0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x40]
call fcn.004073c0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x30]
push 0x50b630
mov edi, 1
lea ecx, [ebp - 0x40]
call fcn.00405550
test eax, eax
mov edi, 8
setne bl
cmp dword [ebp - 0x2c], edi
jb 0x404000
mov eax, dword [ebp - 0x40]
push eax
call fcn.004b6106
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], esi
mov word [ebp - 0x40], cx
cmp dword [ebp - 0x64], edi
jb 0x404021
mov edx, dword [ebp - 0x78]
push edx
call fcn.004b6106
add esp, 4
mov al, bl
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.004b6111
mov esp, ebp
pop ebp
ret

Function at 0x407570
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb768
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5441b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x543f28]
mov edx, dword [eax + 0xc]
mov ecx, 0x543f28
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
push 0x50bab8
lea edi, [ebp - 0x10]
call fcn.00406b50
mov esi, dword [ebp - 0x10]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4075f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407950
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ecd30
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5441b4]
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
xor ebx, ebx
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
push 0x34
xor eax, eax
push 0x50bae0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.004073c0
push ebx
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004064e0
movzx eax, byte [ebp + 8]
mov ecx, dword [ebp - 0x2c]
neg eax
sbb eax, eax
and eax, 0x100
mov esi, 8
add eax, 0xf003f
cmp dword [ebp - 0x18], esi
jae 0x4079d9
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x30]
push edx
push ebx
push eax
push ebx
push ebx
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x407a36
push str.RegWriteUpdateexeVersion
call fcn.00407570
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x407a14
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b6106
add esp, 4
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp eax, ebx
je 0x407a32
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x407a8c
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x407a5b
cmp dword [edi + 0x14], esi
jb 0x407a44
mov edi, dword [edi]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x30]
push edx
push edi
push 1
push ebx
push str.UpdateExeVersion
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x18], esi
jb 0x407a6c
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b6106
add esp, 4
mov eax, dword [ebp - 0x30]
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp eax, ebx
je 0x407a8a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
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.004b6111
mov esp, ebp
pop ebp
ret
Function at 0x408620
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ecc70
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5441b4]
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
xor ebx, ebx
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
push 0x34
xor eax, eax
push 0x50bae0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.004073c0
push ebx
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004064e0
movzx eax, byte [ebp + 8]
mov ecx, dword [ebp - 0x2c]
neg eax
sbb eax, eax
and eax, 0x100
mov esi, 8
add eax, 0xf003f
cmp dword [ebp - 0x18], esi
jae 0x4086a9
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x30]
push edx
push ebx
push eax
push ebx
push ebx
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x408706
push str.RegWriteUninstInfo
call fcn.00407570
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x4086e4
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b6106
add esp, 4
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp eax, ebx
je 0x408702
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x408758
mov eax, dword [edi + 0x10]
cmp dword [edi + 0x14], esi
jb 0x408710
mov edi, dword [edi]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x30]
push edx
push edi
push 1
push ebx
push str.ChannelName
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x18], esi
jb 0x408738
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b6106
add esp, 4
mov eax, dword [ebp - 0x30]
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp eax, ebx
je 0x408756
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
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.004b6111
mov esp, ebp
pop ebp
ret

Function at 0x408780
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx ecx, cl
neg ecx
sbb ecx, ecx
lea eax, [ebp - 4]
push eax
and ecx, 0x100
add ecx, 0xf003f
push ecx
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4087cd
mov eax, dword [ebp - 4]
test eax, eax
je 0x4087c7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x4087d7
mov eax, dword [esi]
jmp 0x4087d9
mov eax, esi
mov edx, dword [ebp - 4]
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
mov eax, dword [ebp - 4]
sete bl
test eax, eax
je 0x4087f8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb738
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x5441b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x244], edi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov dword [ebp - 0x248], esi
mov ebx, ecx
mov word [esi], ax
mov eax, 1
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x23c], 0x104
mov dword [ebp - 0x238], edi
lea ecx, [ebp - 0x234]
push 0x50bae0
push ecx
mov dword [ebp - 4], eax
call fcn.004095e0
add esp, 8
movzx eax, byte [ebp + 8]
neg eax
sbb eax, eax
and eax, 0x100
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x234]
mov ebx, 8
add eax, 0x20019
cmp dword [ebp - 0x220], ebx
jae 0x4093cd
lea ecx, [ebp - 0x234]
lea edx, [ebp - 0x238]
push edx
push eax
push edi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409472
push 0x206
lea ecx, [ebp - 0x216]
push edi
push ecx
mov dword [ebp - 0x23c], 0x104
mov dword [ebp - 0x240], edi
mov word [ebp - 0x218], ax
call fcn.004be120
add esp, 0xc
lea edx, [ebp - 0x23c]
push edx
mov edx, dword [ebp - 0x238]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
push ecx
push edi
push str.ChannelName
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409472
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x409450
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x409450
sub eax, edx
sar eax, 1
cmp eax, edi
jbe 0x409472
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.004073c0
cmp dword [ebp - 0x220], ebx
jb 0x409489
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004b6106
add esp, 4
mov eax, dword [ebp - 0x238]
xor edx, edx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], dx
cmp eax, edi
je 0x4094b3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b6111
mov esp, ebp
pop ebp
ret
Function at 0x4094d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ecb5b
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x5441b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x21c], 0
lea eax, [ebp - 0x21c]
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409551
push str.RegWritePca
call fcn.00407570
mov eax, dword [ebp - 0x21c]
add esp, 4
test eax, eax
je 0x40954d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x4095a8
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [ebp - 0x21c]
push 4
lea edx, [ebp - 0x220]
push edx
push 4
push 0
lea eax, [ebp - 0x218]
push eax
push ecx
mov dword [ebp - 0x220], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov eax, dword [ebp - 0x21c]
sete bl
test eax, eax
je 0x4095a6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b6111
mov esp, ebp
pop ebp
ret

Function at 0x40c5c0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5441b4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push pe_nt_image_headers32
lea ecx, [ebp - 0x11c]
push 0
push ecx
mov dword [ebp - 0x120], 0x11c
call fcn.004be120
add esp, 0xc
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40c621
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b6111
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x11c], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.004b6111
mov esp, ebp
pop ebp
ret
Function at 0x40c800
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec9f3
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x5441b4]
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
lea eax, [ebp - 0x7c]
push eax
call fcn.0040c730
add esp, 4
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x7c]
mov ebx, 8
cmp dword [ebp - 0x68], ebx
jae 0x40c84f
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, edi
je 0x40c939
mov eax, dword [ebp - 0x7c]
cmp dword [ebp - 0x68], ebx
jae 0x40c869
lea eax, [ebp - 0x7c]
push 0x50b25c
push eax
call fcn.004b72a3
mov esi, eax
add esp, 8
cmp esi, edi
jne 0x40c899
cmp dword [ebp - 0x68], ebx
jb 0x40c94a
mov edx, dword [ebp - 0x7c]
push edx
call fcn.004b6106
add esp, 4
xor eax, eax
jmp 0x40c990
push 0x4e
lea ecx, [ebp - 0x5e]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x60], ax
call fcn.004be120
push esi
push 1
lea edx, [ebp - 0x60]
push 0x50
push edx
call fcn.004b768b
push esi
call fcn.004b7715
add esp, 0x20
mov esi, 7
xor eax, eax
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], edi
mov word [ebp - 0x98], ax
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40c8e6
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x98]
call fcn.004073c0
cmp dword [ebp - 0x88], edi
jne 0x40c94e
cmp dword [ebp - 0x84], ebx
jb 0x40c924
mov edx, dword [ebp - 0x98]
push edx
call fcn.004b6106
add esp, 4
xor eax, eax
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], edi
mov word [ebp - 0x98], ax
cmp dword [ebp - 0x68], ebx
jb 0x40c94a
mov ecx, dword [ebp - 0x7c]
push ecx
call fcn.004b6106
add esp, 4
xor eax, eax
jmp 0x40c990
cmp dword [ebp - 0x84], ebx
jb 0x40c965
mov edx, dword [ebp - 0x98]
push edx
call fcn.004b6106
add esp, 4
xor eax, eax
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], edi
mov word [ebp - 0x98], ax
cmp dword [ebp - 0x68], ebx
jb 0x40c98b
mov ecx, dword [ebp - 0x7c]
push ecx
call fcn.004b6106
add esp, 4
mov eax, 1
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.004b6111
mov esp, ebp
pop ebp
ret