joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4031b8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4031f4
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x403214
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405cb4
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x40351c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405a44
test esi, esi
jne 0x403552
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405b34
jmp 0x403570
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004033c0
mov edi, eax
test esi, esi
je 0x403570
cmp dword [ebx], 0
je 0x403570
dec esi
jmp 0x403559
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4048dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x5cc020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404974
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404954
xor eax, eax
push ebp
push 0x40494d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x404990
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404954
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x5cc020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x5cc020], ax
mov esp, ebp
pop ebp
ret

Function at 0x405810
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5d604c], 0
je 0x405871
cmp word [0x5d6220], 0xd7b2
jne 0x405839
cmp dword [0x5d6228], 0
jbe 0x405839
mov eax, 0x5d621c
call dword [0x5d6238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x405898
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5cc030], 0
jne 0x40588d
push 0
push 0x5cc788
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4059c8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x5cc038], 0
je 0x4059ee
mov edx, esi
mov eax, ebx
call dword [0x5cc038]
jmp 0x4059fd
mov eax, 8
call fcn.00402fb0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x5d604d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405990
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x407854
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407a84
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4078d7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407a84
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4078d7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407aa0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x407960
xor eax, eax
push ebp
push 0x407959
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00407690
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40793e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x407ac0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40793e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407960
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x407a7a
cmp byte [ebp - 0xd], 0
jne 0x4079a7
cmp byte [ebp - 0x12], 0
je 0x407a7a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4079c0
dec ebx
cmp byte [ebx], 0x2e
je 0x4079cf
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4079bf
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x407a7a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x407a0c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x407a7a
cmp byte [ebp - 0xd], 0
je 0x407a7a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x407a7a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a99c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40a9ee
test eax, edx
je 0x40a9f1
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40a9b1
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40a9d7
add ecx, 4
js 0x40a9c7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40a9d4
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x40a9fd
test edx, edx
jne 0x40a9a4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405ed4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40b8b5
test al, 0x10
je 0x40b8b9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405ed4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40b8d9
test al, 0x10
jne 0x40b8dd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40ebc0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ebf9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405b34
jmp 0x40ec02
mov eax, ebx
mov edx, esi
call fcn.00405a98
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ec0c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ec2e
movzx eax, byte [esp]
jmp 0x40ec30
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40f40c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40f284
mov eax, dword [0x5d4e74]
cmp byte [eax], 0
je 0x40f488
mov eax, dword [0x5d498c]
call fcn.00403a00
call fcn.0040310c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040be34
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40f4d0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40f4be
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x5d48d0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5d87f8]
call fcn.00407638
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40fdac
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40fe82
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405adc
lea eax, [ebp - 4]
call fcn.00405f2c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405ed4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40fe6c
mov eax, ebx
call fcn.00402fb0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40fe65
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405ed4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40fe4f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40fe94
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40fe4f
mov eax, dword [ebp - 0x14]
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 0x40fe6c
mov eax, dword [ebp - 0x10]
call fcn.00402fcc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fe89
lea eax, [ebp - 4]
call fcn.00405a44
ret

Function at 0x42a808
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0042a544
dec esi
jne 0x42a82a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x42b99c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5daa04
cmp dword [edi], 0
jne 0x42ba18
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5daa00]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5ccd94
mov ecx, 2
call fcn.004032c0
mov edx, 0x42b974
lea eax, [esi + 5]
call fcn.0042b994
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042b994
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x42b9ed
mov dword [0x5daa00], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x42dd18
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405ec4
xor eax, eax
push ebp
push 0x42dd6e
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_SetFileApisToANSI
mov eax, dword [ebp - 4]
call fcn.00405ed4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x42dd52
test al, 0x10
jne 0x42dd56
xor ebx, ebx
jmp 0x42dd58
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42dd75
lea eax, [ebp - 4]
call fcn.00405a44
ret

Function at 0x42ddc8
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff5c
push ebx
xor edx, edx
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0xa4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405ec4
xor eax, eax
push ebp
push 0x42deed
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x9c], 0x94
lea eax, [ebp - 0x9c]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x8c]
sub eax, 2
jne 0x42de34
push 4
push 0
mov eax, dword [ebp - 4]
call fcn.00405ed4
push eax
call sub.kernel32.dll_MoveFileExA
jmp 0x42dec2
mov eax, 0x400
call fcn.00402fb0
mov ebx, eax
push 0x400
push ebx
mov eax, dword [ebp - 4]
call fcn.00405ed4
push eax
call sub.kernel32.dll_GetShortPathNameA
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405c3c
push 0x400
push ebx
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0xa4]
mov edx, ebx
call fcn.00405c3c
mov eax, dword [ebp - 0xa4]
lea edx, [ebp - 0xa0]
call fcn.0042dbb4
mov edx, dword [ebp - 0xa0]
lea eax, [ebp - 8]
mov ecx, 0x42df04
call fcn.00405d5c
mov eax, dword [ebp - 8]
call fcn.00405ed4
push eax
mov eax, dword [ebp - 4]
call fcn.00405ed4
push eax
push 0x42df10
push 0x42df14
call sub.kernel32.dll_WritePrivateProfileStringA
mov eax, ebx
call fcn.00402fcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42def4
lea eax, [ebp - 0xa4]
mov edx, 2
call fcn.00405a68
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405a68
ret
Function at 0x42df1c
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe78
push ebx
xor ecx, ecx
mov dword [ebp - 0x188], ecx
mov dword [ebp - 0x184], ecx
mov dword [ebp - 0x180], ecx
mov dword [ebp - 0x17c], ecx
mov dword [ebp - 0x178], ecx
mov dword [ebp - 0x174], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405ec4
lea eax, [ebp - 0x168]
mov edx, dword [0x4099f8]
call fcn.00406740
xor eax, eax
push ebp
push 0x42e158
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x174]
mov eax, dword [ebp - 4]
call fcn.0042dc8c
mov edx, dword [ebp - 0x174]
lea eax, [ebp - 4]
call fcn.00405adc
lea eax, [ebp - 0x178]
mov ecx, 0x42e16c
mov edx, dword [ebp - 4]
call fcn.00405d5c
mov eax, dword [ebp - 0x178]
lea ecx, [ebp - 0x168]
mov edx, 0x3f
call fcn.0040ba60
cdq
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x16c], edx
jmp 0x42e100
test byte [ebp - 0x158], 0x10
je 0x42e061
mov eax, dword [ebp - 0x154]
mov edx, 0x42e17c
call fcn.00405e6c
je 0x42e061
mov eax, dword [ebp - 0x154]
mov edx, 0x42e188
call fcn.00405e6c
je 0x42e061
test bl, bl
je 0x42e0e8
push dword [ebp - 4]
push 0x42e194
push dword [ebp - 0x154]
lea eax, [ebp - 0x17c]
mov edx, 3
call fcn.00405dd8
mov eax, dword [ebp - 0x17c]
mov dl, 1
call fcn.0042df1c
push dword [ebp - 4]
push 0x42e194
push dword [ebp - 0x154]
lea eax, [ebp - 0x180]
mov edx, 3
call fcn.00405dd8
mov eax, dword [ebp - 0x180]
call fcn.0040be1c
jmp 0x42e0e8
mov eax, dword [ebp - 0x154]
mov edx, 0x42e17c
call fcn.00405e6c
je 0x42e0e8
mov eax, dword [ebp - 0x154]
mov edx, 0x42e188
call fcn.00405e6c
je 0x42e0e8
push 0x80
push dword [ebp - 4]
push 0x42e194
push dword [ebp - 0x154]
lea eax, [ebp - 0x184]
mov edx, 3
call fcn.00405dd8
mov eax, dword [ebp - 0x184]
call fcn.00405ed4
push eax
call sub.kernel32.dll_SetFileAttributesA
push dword [ebp - 4]
push 0x42e194
push dword [ebp - 0x154]
lea eax, [ebp - 0x188]
mov edx, 3
call fcn.00405dd8
mov eax, dword [ebp - 0x188]
call fcn.00405ed4
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x168]
call fcn.0040bab0
cdq
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x16c], edx
cmp dword [ebp - 0x16c], 0
jne 0x42e110
cmp dword [ebp - 0x170], 0
je 0x42dfcf
lea eax, [ebp - 0x168]
call fcn.0040bad4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e15f
lea eax, [ebp - 0x188]
mov edx, 6
call fcn.00405a68
lea eax, [ebp - 0x168]
mov edx, dword [0x4099f8]
call fcn.00406810
lea eax, [ebp - 4]
call fcn.00405a44
ret
Function at 0x430ccc
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 - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x430e36
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405adc
mov eax, dword [ebp - 4]
call fcn.00430828
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x430d1e
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00405f7c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00431234
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x430df3
xor eax, eax
push ebp
push 0x430dec
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004309d4
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00430e64
test al, al
je 0x430dca
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00405b34
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x430dca
mov eax, dword [ebp - 0x34]
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 - 8]
call fcn.00405ed4
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x430dc4
mov eax, dword [ebp - 8]
call fcn.00405ed4
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00405c3c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.00430ccc
dec ebx
cmp ebx, 0xffffffff
jne 0x430d7d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430df3
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004309d4
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
call fcn.00405ed4
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004309c0
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 0x430e3d
lea eax, [ebp - 0x3c]
call fcn.00405a44
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405a68
ret

Function at 0x430e64
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.00403d20
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 [0x5d511c]
cmp byte [edx + 0xc], 0
je 0x430ec8
mov edx, dword [0x5d510c]
cmp dword [edx], 2
jne 0x430ec8
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 0x430ecc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x430f84
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 - 0x28]
mov eax, edi
call fcn.00430e64
test al, al
je 0x430f66
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405b34
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x430f66
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
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 - 4]
call fcn.00405ed4
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 4]
call fcn.00405ed4
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00405c3c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x430f1f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430f8b
lea eax, [ebp - 0x2c]
call fcn.00405a44
lea eax, [ebp - 4]
call fcn.00405a44
ret

Function at 0x431148
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
movzx eax, byte [ebp + 8]
call fcn.0043083c
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.00405ed4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4311a7
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5d4c2c]
mov dl, 1
mov eax, dword [0x4306c8]
call fcn.0040f5fc
call fcn.00405398
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4311b0
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.00405ed4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x431208
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5d5130]
mov dl, 1
mov eax, dword [0x4306c8]
call fcn.0040f5fc
call fcn.00405398
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0043086c
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 0x432640
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 0x432646
ret