joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002f1c3
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1002f1ee
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push 1
mov ecx, dword [ebp - 8]
call fcn.10018b0a
mov dword [eax], 1
jmp 0x1002f1f6
push 0
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov esp, ebp
pop ebp
ret

Function at 0x100332f1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10033315
xor eax, eax
jmp 0x10033486
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x10033333
xor eax, eax
jmp 0x10033486
push 0x584c
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x690c
call fcn.10032e9a
add esp, 0x14
cmp dword [ebp - 0xc], 0
jne 0x1003335c
xor eax, eax
jmp 0x10033486
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
push 0x50f3
lea eax, [ebp - 8]
push eax
push 0x3cb4
call fcn.10032f1e
add esp, 0x20
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x6f1
lea eax, [ebp + 8]
push eax
push 0x21f1
push 1
push 0x36c9
call fcn.10032ff6
add esp, 0x1c
push 0x3b16
push 0x614d
lea eax, [ebp - 0x14]
push eax
push 0x2bd3
lea eax, [ebp - 0xc]
push eax
push 0x59a3
push 0x3f84
lea eax, [ebp - 8]
push eax
push 0x2dca
push 1
push 0x303e
call fcn.100330dd
add esp, 0x2c
cmp dword [ebp - 0x14], 0
je 0x10033404
lea eax, [ebp - 4]
push eax
push 0x31e0
lea eax, [ebp - 0x14]
push eax
push 0x45a1
push 1
call fcn.1003325b
add esp, 0x14
push dword [ebp - 4]
call fcn.10032269
pop ecx
test eax, eax
jne 0x10033415
xor eax, eax
jmp 0x10033486
push 0
push 0x639c
push dword [ebp - 4]
push 0xf16
call fcn.1002f31a
add esp, 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x1003346e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x1003344b
xor eax, eax
jmp 0x10033486
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10033464
xor eax, eax
jmp 0x10033486
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x1003347f
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x10033483
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x1004919f
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100491ba
push 0
call dword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x1004924b
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.10018b0a
mov eax, dword [eax]
sub eax, 0xf5ec
cmp eax, 0x4015fb26
jne 0x1004920e
mov dword [ebp - 4], 1
jmp 0x10049212
and dword [ebp - 4], 0
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.10018b0a
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
cmp dword [ebp - 4], 0
je 0x1004923f
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, 0x2db756fd
je 0x1004923f
mov dword [ebp - 0x10], 1
jmp 0x10049243
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1004c993
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1004c9b5
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
and dword [eax], 0
jmp 0x1004c9c9
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1004c9c9
push 0
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov esp, ebp
pop ebp
ret
Function at 0x10087e17
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10093340]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1007779c
mov dword [ebp - 0x14], eax
cmp dword [0x1068023c], esi
jne 0x10087f0a
push 0x800
push esi
push 0x10008198
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10087e97
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10087fea
push esi
push esi
push 0x10008198
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10087fea
push 0x100081b0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10087fea
push eax
call ebx
push 0x100081bc
push edi
mov dword [0x1068023c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100081cc
push edi
mov dword [0x10680240], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100081e0
push edi
mov dword [0x10680244], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1068024c], eax
test eax, eax
je 0x10087f07
push 0x100081fc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10680248], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10087f2f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10087f22
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10087f44
push 4
pop eax
jmp 0x10087fec
cmp dword [ebp - 0x14], esi
je 0x10087f44
push dword [0x1068023c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10087f29
mov eax, dword [0x10680248]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10087fa2
cmp dword [0x1068024c], edi
je 0x10087fa2
push eax
call ebx
push dword [0x1068024c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10087fa2
test eax, eax
je 0x10087fa2
call ecx
test eax, eax
je 0x10087f97
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10087f97
test byte [ebp - 8], 1
jne 0x10087fa2
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10087fd2
mov eax, dword [0x10680240]
cmp eax, edi
je 0x10087fcf
push eax
call ebx
test eax, eax
je 0x10087fcf
call eax
mov esi, eax
test esi, esi
je 0x10087fcf
mov eax, dword [0x10680244]
cmp eax, edi
je 0x10087fcf
push eax
call ebx
test eax, eax
je 0x10087fcf
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1068023c]
call ebx
test eax, eax
je 0x10087fea
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10087fec
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x403100
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 0x40313c
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 0x40315c
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.0040594c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403464
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.004056dc
test esi, esi
jne 0x40349a
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.004057cc
jmp 0x4034b8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403308
mov edi, eax
test esi, esi
je 0x4034b8
cmp dword [ebx], 0
je 0x4034b8
dec esi
jmp 0x4034a1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4034ec
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4f1008], 0x8088405
inc edx
mov dword [ebx + 0x4f1008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403bd8
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x403bee
sub ecx, 2
jne 0x403c10
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x403c17
cmp edx, dword [ebx + 8]
je 0x403c21
mov eax, 0x64
jmp 0x403c1c
mov eax, 0x67
jmp 0x403c1c
call sub.kernel32.dll_GetLastError
call fcn.00403074
pop ebx
ret

Function at 0x403ff8
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x40402b
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_WriteFile
pop edx
dec eax
jne 0x404032
cmp edx, dword [ebx + 8]
je 0x40403c
mov eax, 0x65
jmp 0x404037
mov eax, 5
jmp 0x404037
call sub.kernel32.dll_GetLastError
call fcn.00403074
mov eax, ebx
pop ebx
ret
Function at 0x404598
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4f1024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404630
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404610
xor eax, eax
push ebp
push 0x404609
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 0x40464c
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 0x404610
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4f1024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4f1024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4054a8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4f404c], 0
je 0x405509
cmp word [0x4f4220], 0xd7b2
jne 0x4054d1
cmp dword [0x4f4228], 0
jbe 0x4054d1
mov eax, 0x4f421c
call dword [0x4f4238]
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 0x405530
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4f1030], 0
jne 0x405525
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405660
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 [0x4f1038], 0
je 0x405686
mov edx, esi
mov eax, ebx
call dword [0x4f1038]
jmp 0x405695
mov eax, 8
call fcn.00402ef8
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4f404d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405628
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 0x40eaac
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40e924
mov eax, dword [0x4f3784]
cmp byte [eax], 0
je 0x40eb28
mov eax, dword [0x4f3480]
call fcn.004038fc
call fcn.00403054
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.0040b494
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 0x40eb70
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40eb5e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4f3400]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4f67f8]
call fcn.00406f20
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 0x40f41c
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 0x40f4f2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405774
lea eax, [ebp - 4]
call fcn.00405bc4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405b6c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40f4dc
mov eax, ebx
call fcn.00402ef8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f4d5
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.00405b6c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40f4bf
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f504
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40f4bf
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 0x40f4dc
mov eax, dword [ebp - 0x10]
call fcn.00402f14
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f4f9
lea eax, [ebp - 4]
call fcn.004056dc
ret

Function at 0x425294
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.00424fa4
dec esi
jne 0x4252b6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x426428
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4f89f0
cmp dword [edi], 0
jne 0x4264a4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4f89ec]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4f1c58
mov ecx, 2
call fcn.00403208
mov edx, 0x426400
lea eax, [esi + 5]
call fcn.00426420
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00426420
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 0x426479
mov dword [0x4f89ec], 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 0x42b364
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 0x42b4ce
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405774
mov eax, dword [ebp - 4]
call fcn.0042aee0
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x42b3b6
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00405c14
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.0042b94c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x42b48b
xor eax, eax
push ebp
push 0x42b484
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0042b06c
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.0042b4dc
test al, al
je 0x42b462
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.004057cc
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x42b462
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.00405b6c
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x42b45c
mov eax, dword [ebp - 8]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.004058d4
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.0042b364
dec ebx
cmp ebx, 0xffffffff
jne 0x42b415
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b48b
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0042b06c
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
call fcn.00405b6c
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0042b058
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 0x42b4d5
lea eax, [ebp - 0x3c]
call fcn.004056dc
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405700
ret

Function at 0x42b4dc
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00403b3c
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 [0x4f3928]
cmp byte [edx + 0xc], 0
je 0x42b543
mov edx, dword [0x4f3914]
cmp dword [edx], 2
jne 0x42b543
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
pop ebp
ret
Function at 0x42b548
Capabilities:
Query or enumerate registry key

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 0x42b600
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.0042b4dc
test al, al
je 0x42b5e2
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.004057cc
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x42b5e2
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
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.00405b6c
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 4]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.004058d4
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x42b59b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b607
lea eax, [ebp - 0x2c]
call fcn.004056dc
lea eax, [ebp - 4]
call fcn.004056dc
ret

Function at 0x42b610
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 8
call fcn.00403b3c
lea eax, [ebx + 4]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
mov eax, edi
call fcn.00405b6c
push eax
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete byte [ebp - 1]
mov eax, dword [ebp - 8]
call fcn.0042af2c
mov byte [ebx], al
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x42b85c
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.0042aefc
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.00405b6c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x42b8bb
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4f3614]
mov dl, 1
mov eax, dword [0x42ad78]
call fcn.0040ec6c
call fcn.00405054
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42b8c4
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.00405b6c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x42b91c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4f3934]
mov dl, 1
mov eax, dword [0x42ad78]
call fcn.0040ec6c
call fcn.00405054
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042af2c
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 0x42cbd0
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 0x42cbd6
ret