joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c568
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40c5f8
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40c5f8
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40c5ab
test edx, 3
jne 0x40c59a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x40c5a5
jmp 0x40c5ab
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40c5ab
cmp dword [ecx - 8], 1
je 0x40c5b5
mov edx, ebx
or edx, 3
call fcn.00405b94
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40c5c7
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00405448

Function at 0x40c604
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40c694
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40c694
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40c647
test edx, 3
jne 0x40c636
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x40c641
jmp 0x40c647
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40c647
cmp dword [ecx - 8], 1
je 0x40c651
mov edx, ebx
or edx, 3
call fcn.00405b94
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40c663
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00405448

Function at 0x40d688
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_ReadFile_1
test eax, eax
jne 0x40d6b9
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x40d6c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_WriteFile_1
test eax, eax
jne 0x40d6f1
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x40d810
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040590c
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x40d836
test byte [ebp - 0xc], 0x10
je 0x40d83a
xor eax, eax
jmp 0x40d83c
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040590c
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x40d86e
test byte [ebp - 0xc], 0x10
jne 0x40d872
xor eax, eax
jmp 0x40d874
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x40d880
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040590c
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x40d8af
call sub.KERNEL32.DLL_GetLastError_1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x40da44
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040590c
push eax
call sub.KERNEL32.DLL_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x40df0c
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040590c
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x40df34
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 4]
call fcn.0040590c
push eax
call sub.KERNEL32.DLL_CreateDirectoryA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x411308
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x411350
mov ecx, dword [ebp - 0x10]
dec ecx
lea edx, [ebp - 0x110]
mov eax, dword [ebp + 8]
call fcn.00405538
jmp 0x41135b
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.0040549c
mov esp, ebp
pop ebp
ret 4
Function at 0x411364
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
test eax, eax
jle 0x411392
mov al, byte [ebp - 0xc]
mov byte [ebp - 0xa], al
jmp 0x411398
mov al, byte [ebp - 9]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret

Function at 0x411b20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x400
lea ecx, [ebp - 0x44c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00411968
mov eax, dword [0x57b678]
cmp byte [eax], 0
je 0x411bb3
mov eax, dword [0x57b2d4]
call fcn.0040391c
call fcn.0040310c
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x44c]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x44c]
call fcn.0040df60
push eax
lea eax, [ebp - 0x44c]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [ebp - 0xc]
push eax
push 2
push 0x411bf8
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
jmp 0x411be9
push 0x40
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [0x57b23c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x57e7f8]
call fcn.00406c14
push eax
call sub.user32.dll_LoadStringA
push 0x2010
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44c]
push eax
push 0
call sub.user32.dll_MessageBoxA
mov esp, ebp
pop ebp
ret

Function at 0x412614
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4126f2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004054e0
lea eax, [ebp - 0xc]
call fcn.0040595c
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040590c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4126dc
mov eax, dword [ebp - 0x10]
call fcn.00402f40
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4126d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040590c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4126bf
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x412700
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4126bf
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4126dc
mov eax, dword [ebp - 0x18]
call fcn.00402f5c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4126f9
lea eax, [ebp - 0xc]
call fcn.00405448
ret
Function at 0x41430c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00405448
push 0x400
lea eax, [ebp - 0x40c]
push eax
mov eax, dword [ebp - 4]
call fcn.0040590c
push eax
call sub.KERNEL32.DLL_GetEnvironmentVariableA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x400
jge 0x41435c
lea edx, [ebp - 0x40c]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
call fcn.00405538
jmp 0x414385
mov edx, dword [ebp - 0xc]
dec edx
mov eax, dword [ebp - 8]
call fcn.00405b94
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040590c
push eax
mov eax, dword [ebp - 4]
call fcn.0040590c
push eax
call sub.KERNEL32.DLL_GetEnvironmentVariableA
mov esp, ebp
pop ebp
ret

Function at 0x4251a4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_FindResourceA
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x4251da
push ebp
call fcn.00425104
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_LoadResource
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
jne 0x425200
push ebp
call fcn.00425104
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_SizeofResource
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
push eax
call sub.KERNEL32.DLL_LockResource
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.00424aec
mov esp, ebp
pop ebp
ret 8

Function at 0x42baa8
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
setge dl
mov eax, dword [ebp - 4]
call fcn.0042b734
cmp dword [ebp - 8], 1
jne 0x42badc
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 0
pop ecx
pop ecx
pop ebp
ret
Function at 0x42d3c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
cmp dword [0x581548], 0
jne 0x42d46d
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [0x581544]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x5742e0
mov ecx, 2
call fcn.00403250
mov edx, 0x42d37c
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0042d39c
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebp - 0xc]
call fcn.0042d39c
mov edx, dword [ebp - 0xc]
mov dword [edx + 1], eax
mov eax, dword [0x581548]
mov edx, dword [ebp - 0xc]
mov dword [edx + 5], eax
mov eax, dword [ebp - 0xc]
mov dword [0x581548], eax
add dword [ebp - 0xc], 0xd
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x42d427
mov eax, dword [ebp - 8]
mov dword [0x581544], eax
mov eax, dword [0x581548]
mov dword [ebp - 4], eax
mov eax, dword [0x581548]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 5]
mov dword [0x581548], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x431358
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4314cd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.004054e0
mov eax, dword [ebp - 0x1c]
call fcn.00430cf4
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
jne 0x4313ab
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, 1
call fcn.004059ac
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004318f8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x43148a
xor eax, eax
push ebp
push 0x431483
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00430f40
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.0043150c
test al, al
je 0x431461
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 0x20]
xor edx, edx
call fcn.00405538
mov eax, dword [ebp - 0x44]
dec eax
cmp eax, 0
jl 0x431461
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x20]
call fcn.0040590c
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x431458
mov eax, dword [ebp - 0x20]
call fcn.0040590c
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.00405640
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 4]
call fcn.00431358
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xffffffff
jne 0x43140e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43148a
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.00430f40
mov eax, dword [ebp - 0x28]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 0x1c]
call fcn.0040590c
push eax
mov dl, byte [ebp - 0x15]
mov eax, dword [ebp - 4]
call fcn.00430f08
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4314d4
lea eax, [ebp - 0x48]
call fcn.00405448
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0040546c
ret

Function at 0x4314dc
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0040590c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegDeleteValueA
test eax, eax
sete byte [ebp - 9]
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret
Function at 0x43150c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 0x1c
call fcn.00403bf8
mov eax, dword [ebp - 8]
add eax, 0x14
push eax
push 0
mov eax, dword [ebp - 8]
add eax, 0x10
push eax
mov eax, dword [ebp - 8]
add eax, 0xc
push eax
mov eax, dword [ebp - 8]
add eax, 8
push eax
push 0
mov eax, dword [ebp - 8]
add eax, 4
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete byte [ebp - 9]
mov eax, dword [0x57b8ac]
cmp byte [eax + 0xc], 0
je 0x431597
mov eax, dword [0x57b898]
cmp dword [eax], 2
jne 0x431597
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 8]
add dword [edx + 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 8]
add dword [edx + 0xc], eax
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x4315a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x431669
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.0043150c
test al, al
je 0x43164b
mov ecx, dword [ebp - 0x28]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00405538
mov eax, dword [ebp - 0x2c]
dec eax
test eax, eax
jl 0x43164b
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
call fcn.0040590c
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0x14]
call fcn.0040590c
mov edx, eax
lea eax, [ebp - 0x38]
call fcn.00405640
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x10]
dec dword [ebp - 0x18]
jne 0x4315fa
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x431670
lea eax, [ebp - 0x38]
call fcn.00405448
lea eax, [ebp - 0x14]
call fcn.00405448
ret

Function at 0x431674
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov edx, 8
call fcn.00403bf8
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040590c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
sete byte [ebp - 0xd]
mov eax, dword [ebp - 0x14]
call fcn.00430d6c
mov edx, dword [ebp - 0xc]
mov byte [edx], al
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret
Function at 0x4317d8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
call fcn.00430d1c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040590c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x431840
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [0x57b4e0]
mov dl, 1
mov eax, dword [0x430bf8]
call fcn.00411d1c
call fcn.00404da0
mov esp, ebp
pop ebp
ret 8

Function at 0x431848
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040590c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4318aa
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea eax, [ebp - 0x1c]
push eax
push 0
mov ecx, dword [0x57b8c4]
mov dl, 1
mov eax, dword [0x430bf8]
call fcn.00411d1c
call fcn.00404da0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
call fcn.00430d6c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8

Function at 0x432b1c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x432b22
ret
Function at 0x44b01c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push esi
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44b225
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00471260
mov eax, dword [ebp - 4]
cmp byte [eax + 0x258], 0
je 0x44b20a
call sub.KERNEL32.DLL_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x268]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x2c0]
jb 0x44b083
mov eax, dword [ebp - 4]
add eax, 0x264
call fcn.00405448
call sub.KERNEL32.DLL_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x268], eax
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 8
je 0x44b171
mov eax, dword [ebp - 8]
mov al, byte [eax]
mov edx, dword [0x57b88c]
and eax, 0xff
bt dword [edx], eax
jae 0x44b11d
push 1
push 0x102
push 0x102
mov eax, dword [ebp - 4]
call fcn.004728f8
push eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x44b1c5
mov eax, dword [ebp - 4]
push dword [eax + 0x264]
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 8]
mov dl, byte [edx]
call fcn.00405630
push dword [ebp - 0x34]
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x28]
call fcn.00405630
push dword [ebp - 0x38]
mov eax, dword [ebp - 4]
add eax, 0x264
mov edx, 3
call fcn.004057cc
mov eax, dword [ebp - 8]
mov byte [eax], 0
jmp 0x44b1c5
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 8]
mov dl, byte [edx]
call fcn.00405630
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
add eax, 0x264
call fcn.00405714
jmp 0x44b1c5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x264]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x44b15c
mov eax, dword [ebp - 0xc]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
add eax, 0x264
mov ecx, 1
mov edx, dword [ebp - 0xc]
call fcn.004059ac
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x264]
call fcn.00405708
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x264]
call fcn.004127b0
cmp al, 2
je 0x44b13f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x264]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x44b1b0
mov eax, dword [ebp - 0x10]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add eax, 0x264
mov ecx, 1
mov edx, dword [ebp - 0x10]
call fcn.004059ac
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x264]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x44b1e2
mov eax, dword [ebp - 0x14]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x44b1f1
push ebp
call fcn.0044af30
pop ecx
jmp 0x44b20a
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov eax, dword [ebp - 4]
mov si, 0xffeb
call fcn.004046e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b22c
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.0040546c
ret