joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422b1c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x422c85
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.0040473c
mov eax, dword [ebp - 0x10]
call fcn.00422848
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x422b6e
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404c14
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00422fd4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x422c43
xor eax, eax
push ebp
push 0x422c3c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004229f4
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00422cb4
test al, al
je 0x422c1a
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404794
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x422c1a
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404b74
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x422c14
mov eax, dword [ebp - 0x14]
call fcn.00404b74
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.004048ac
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00422b1c
dec ebx
cmp ebx, 0xffffffff
jne 0x422bcd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422c43
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004229f4
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00404b74
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.004229e0
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422c8c
lea eax, [ebp - 0x3c]
call fcn.004046a4
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004046c8
ret
Function at 0x422c43
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x422c85
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.0040473c
mov eax, dword [ebp - 0x10]
call fcn.00422848
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x422b6e
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404c14
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00422fd4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x422c43
xor eax, eax
push ebp
push 0x422c3c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004229f4
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00422cb4
test al, al
je 0x422c1a
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404794
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x422c1a
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404b74
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x422c14
mov eax, dword [ebp - 0x14]
call fcn.00404b74
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.004048ac
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00422b1c
dec ebx
cmp ebx, 0xffffffff
jne 0x422bcd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422c43
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004229f4
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00404b74
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.004229e0
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422c8c
lea eax, [ebp - 0x3c]
call fcn.004046a4
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004046c8
ret

Function at 0x422cb4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.004030c4
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x470088]
cmp byte [edx + 0xc], 0
je 0x422d18
mov edx, dword [0x470080]
cmp dword [edx], 2
jne 0x422d18
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x422ee8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0042285c
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404b74
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x422f46
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x46fe84]
mov dl, 1
mov eax, dword [0x422754]
call fcn.0040c65c
call fcn.00404060
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x422f50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404b74
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x422fa8
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x470098]
mov dl, 1
mov eax, dword [0x422754]
call fcn.0040c65c
call fcn.00404060
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042288c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4233b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, eax
call sub.kernel32.dll_GetTickCount_1
mov dword [0x46e4f8], eax
mov byte [0x46e4e4], 0
jmp 0x423405
cmp byte [0x471a01], 2
je 0x4233e3
mov eax, dword [esi + 4]
call fcn.00404b74
push eax
call sub.kernel32.dll_OutputDebugStringA
jmp 0x4233eb
mov eax, dword [esi + 4]
call fcn.0042327c
mov eax, dword [ebx + 8]
mov esi, eax
mov eax, dword [eax + 0xc]
mov dword [ebx + 8], eax
lea eax, [esi + 4]
call fcn.004046a4
mov eax, esi
call fcn.00403828
mov esi, dword [ebx + 8]
test esi, esi
jne 0x4233ca
xor eax, eax
mov dword [ebx + 8], eax
xor eax, eax
mov dword [ebx + 0xc], eax
pop esi
pop ebx
pop ebp
ret
Function at 0x42d158
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov byte [eax + 8], 0
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], ebx
test ebx, ebx
jbe 0x42d1ec
xor eax, eax
push ebp
push 0x42d1d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0042d0b0
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], esi
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.version.dll_GetFileVersionInfoA
cmp eax, 1
sbb eax, eax
inc eax
mov edx, dword [ebp - 4]
mov byte [edx + 8], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42d1ec
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x42de50
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 7
push 0
push 0
dec ecx
jne 0x42de59
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42e039
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 1
mov dl, 1
mov eax, dword [0x415ca0]
call fcn.004037f8
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x42dfb7
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
mov ecx, dword [ebp - 0x14]
mov edx, 0x3f
mov eax, dword [ebp - 4]
call fcn.0042dc0c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x42dfa1
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x28]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.00409078
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
pop ecx
call fcn.004049c0
mov bl, 1
mov eax, dword [ebp - 0x1c]
call fcn.00404b74
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x42df36
test al, 0x10
je 0x42df36
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
call fcn.0040d17c
lea eax, [ebp - 0x30]
mov edx, 0x42e050
call fcn.0040497c
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov dl, 1
call fcn.0042de50
mov ebx, eax
jmp 0x42df8d
test bl, bl
je 0x42df8d
cmp dword [ebp - 0xc], 0
je 0x42df64
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x1c]
call fcn.00409250
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x18]
call fcn.00408410
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jne 0x42df95
push 0x80
mov eax, dword [ebp - 0x1c]
call fcn.00404b74
push eax
call sub.kernel32.dll_SetFileAttributesA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x42df8d
mov dl, 1
mov eax, dword [ebp - 0x1c]
call fcn.0042d630
mov ebx, eax
test bl, bl
jne 0x42df95
mov byte [ebp - 0xd], 0
inc dword [ebp - 0x20]
dec dword [ebp - 0x24]
jne 0x42decc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42dfbe
lea eax, [ebp - 0x14]
call fcn.0040e0e0
ret
Function at 0x42e6ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x410], ebx
mov dword [ebp - 0x414], ebx
mov dword [ebp - 0x40c], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x42e8b2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
mov edx, dword [ebp + 0xc]
call fcn.004046f8
xor eax, eax
push ebp
push 0x42e88a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x40c]
mov eax, esi
call fcn.0042e33c
mov edx, dword [ebp - 0x40c]
lea eax, [ebp - 0x110]
mov ecx, 0xff
call fcn.004093b0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyA
mov ebx, eax
test ebx, ebx
je 0x42e783
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42e894
lea eax, [ebp - 0x210]
mov ecx, 0xff
mov edx, dword [ebp - 4]
call fcn.004093b0
xor eax, eax
push ebp
push 0x42e879
push dword fs:[eax]
mov dword fs:[eax], esp
lea esi, [ebp - 0x405]
mov dword [ebp - 8], 0x1f4
mov byte [esi], 0
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
test ebx, ebx
jne 0x42e7e0
mov edx, edi
mov eax, esi
call fcn.004094c8
jmp 0x42e826
cmp ebx, 0xea
jne 0x42e826
mov eax, dword [ebp - 8]
call fcn.004083b4
mov esi, eax
mov byte [esi], 0
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
test ebx, ebx
jne 0x42e81f
mov edx, edi
mov eax, esi
call fcn.004094c8
mov eax, esi
call fcn.0040276c
test ebx, ebx
je 0x42e862
cmp ebx, 2
je 0x42e862
lea edx, [ebp - 0x414]
mov eax, ebx
call fcn.004086e4
mov ecx, dword [ebp - 0x414]
lea eax, [ebp - 0x410]
mov edx, 0x42e8cc
call fcn.004049c0
mov eax, dword [ebp - 0x410]
mov edx, 7
call fcn.00423b18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e880
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e8b9
lea eax, [ebp - 0x414]
mov edx, 3
call fcn.004046c8
ret
Function at 0x42e8ec
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x400], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x42eabc
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x42ea99
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x400]
mov eax, dword [ebp - 4]
call fcn.0042e33c
mov edx, dword [ebp - 0x400]
lea eax, [ebp - 0x205]
call fcn.0040938c
cmp byte [ebp + 8], 0
je 0x42e961
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x205]
push eax
push ebx
call sub.advapi32.dll_RegCreateKeyA
mov dword [ebp - 0xc], eax
jmp 0x42e975
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x205]
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42e988
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42eaa3
xor edx, edx
push ebp
push 0x42ea88
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x42ea6a
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, edi
call fcn.00404974
mov ebx, eax
lea eax, [ebx + 1]
cmp eax, 0x1f4
jge 0x42e9c2
lea eax, [ebp - 0x205]
mov dword [ebp - 0x10], eax
jmp 0x42e9ca
call fcn.004083b4
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x42ea3b
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, edi
mov eax, dword [ebp - 0x10]
call fcn.0040938c
mov byte [ebp - 0x3fa], 0
lea eax, [ebp - 0x3fa]
mov edx, esi
call fcn.0040938c
test esi, esi
jne 0x42e9fe
xor eax, eax
jmp 0x42ea04
lea eax, [ebp - 0x3fa]
push ebx
mov edx, dword [ebp - 0x10]
push edx
push 1
push 0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ea42
lea eax, [ebp - 0x205]
cmp eax, dword [ebp - 0x10]
je 0x42ea3a
mov eax, dword [ebp - 0x10]
call fcn.0040276c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42eac3
lea eax, [ebp - 0x400]
call fcn.004046a4
ret
Function at 0x42ecbc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9f8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x604], ebx
mov dword [ebp - 0x608], ebx
mov dword [ebp - 0x600], ebx
mov dword [ebp - 0x5fc], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x42eed7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], esi
xor eax, eax
push ebp
push 0x42eeaf
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x5fc]
mov eax, edi
call fcn.0042e33c
mov edx, dword [ebp - 0x5fc]
lea eax, [ebp - 0x20d]
call fcn.0040938c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20d]
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyA
mov ebx, eax
test ebx, ebx
je 0x42ed4d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42eeb9
lea eax, [ebp - 0x402]
mov edx, dword [ebp - 4]
call fcn.0040938c
xor eax, eax
push ebp
push 0x42ee9e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x402]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
cmp dword [ebp - 0x18], 4
je 0x42ee44
cmp dword [ebp - 0x18], 3
je 0x42ee44
cmp dword [ebp - 0x18], 4
je 0x42ee44
cmp dword [ebp - 0x18], 5
je 0x42ee44
mov edx, 7
mov eax, 0x42eef4
call fcn.00423b18
mov dword [ebp - 0xc], 0x1f4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x5f7]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x402]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
test ebx, ebx
jne 0x42ee44
mov edx, 7
mov eax, 0x42ef30
call fcn.00423b18
lea eax, [ebp - 0x600]
lea edx, [ebp - 0x5f7]
mov ecx, 0x1f5
call fcn.00404924
mov eax, dword [ebp - 0x600]
mov edx, esi
call fcn.0040888c
mov dword [ebp - 8], eax
call fcn.0040410c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42eeb9
test ebx, ebx
je 0x42ee4b
mov dword [ebp - 8], esi
test ebx, ebx
je 0x42ee87
cmp ebx, 2
je 0x42ee87
lea edx, [ebp - 0x608]
mov eax, ebx
call fcn.004086e4
mov ecx, dword [ebp - 0x608]
lea eax, [ebp - 0x604]
mov edx, 0x42ef4c
call fcn.004049c0
mov eax, dword [ebp - 0x604]
mov edx, 7
call fcn.00423b18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42eea5
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42eede
lea eax, [ebp - 0x608]
mov edx, 4
call fcn.004046c8
ret
Function at 0x42fb6c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
mov ebx, eax
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
mov eax, ebx
lea edx, [ebp - 0x105]
call fcn.004048ac
cmp dword [ebx], 0
je 0x42fbb7
mov eax, dword [ebx]
call fcn.00404974
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x42fbb7
mov eax, ebx
mov edx, 0x42fbc4
call fcn.0040497c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4340ac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b64
xor eax, eax
push ebp
push 0x434168
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor esi, esi
push ebp
push 0x434140
push dword fs:[esi]
mov dword fs:[esi], esp
test bl, bl
je 0x434102
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00408528
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.0040473c
mov ebx, 1
mov eax, dword [ebp - 4]
call fcn.00404974
test eax, eax
jle 0x434133
mov edx, 1
imul ecx, ebx, 0x5517e877
mov ebx, ecx
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + edx - 1]
xor ebx, dword [ecx*4 + 0x46f33c]
inc edx
dec eax
jne 0x434118
mov dword [ebp - 8], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43414a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43416f
lea eax, [ebp - 0xc]
call fcn.004046a4
lea eax, [ebp - 4]
call fcn.004046a4
ret
Function at 0x43434c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, esi
mov edx, dword [ebp + 0xc]
call fcn.004046f8
xor edx, edx
push ebp
push 0x434474
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x110]
mov ecx, 0xff
mov edx, edi
call fcn.004093b0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
je 0x4343ae
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43447e
lea eax, [ebp - 0x210]
mov ecx, 0xff
mov edx, dword [ebp - 4]
call fcn.004093b0
xor edx, edx
push ebp
push 0x434463
push dword fs:[edx]
mov dword fs:[edx], esp
lea ebx, [ebp - 0x405]
mov dword [ebp - 8], 0x1f4
mov byte [ebx], 0
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x434409
mov edx, esi
mov eax, ebx
call fcn.004094c8
jmp 0x43444c
cmp eax, 0xea
jne 0x43444c
mov eax, dword [ebp - 8]
call fcn.004083b4
mov ebx, eax
mov byte [ebx], 0
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x434445
mov edx, esi
mov eax, ebx
call fcn.004094c8
mov eax, ebx
call fcn.0040276c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43446a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4446c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x444829
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x24
call fcn.004030c4
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x14]
mov dword [0x46fb20], eax
mov eax, dword [ebp - 0xc]
mov dword [0x46fb24], eax
mov eax, dword [ebp - 0x24]
mov dword [0x46fb28], eax
mov eax, dword [0x470080]
cmp dword [eax], 2
sete byte [0x46fa90]
push 0x444834
call sub.kernel32.dll_GetModuleHandleA_2
lea edx, [ebp - 4]
call fcn.00444e28
cmp byte [0x46fa90], 0
jne 0x44474c
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.00444e5c
test al, al
je 0x44474c
mov eax, dword [ebp - 0x4c]
mov dword [0x4724ec], eax
jmp 0x444753
xor eax, eax
mov dword [0x4724ec], eax
call fcn.00444558
and eax, 0x7f
cmp eax, 0xb
ja case.0x444764.0
jmp dword [eax*4 + 0x44476b]
mov byte [0x46fa7c], 1
jmp case.0x444764.0
mov byte [0x46fa80], 1
jmp case.0x444764.0
mov byte [0x46fa84], 1
jmp case.0x444764.0
mov byte [0x46fa88], 1
jmp case.0x444764.0
mov byte [0x46fa8c], 1
jmp case.0x444764.0
mov byte [0x46fa94], 1
mov byte [0x46fa98], 1
jmp case.0x444764.0
mov byte [0x46fa94], 1
mov byte [0x46fa9c], 1
jmp case.0x444764.0
mov byte [0x46fa94], 1
mov byte [0x46faa0], 1
jmp case.0x444764.0
mov byte [0x46faa4], 1
jmp case.0x444764.0
mov byte [0x46faa8], 1
jmp case.0x444764.0
mov byte [0x46faac], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x444830
lea eax, [ebp - 4]
call fcn.004046a4
ret