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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405410
xor eax, eax
push ebp
push 0x458636
push dword fs:[eax]
mov dword fs:[eax], esp
lea ebx, [ebp - 0xc]
mov dword [ebx], esi
mov eax, dword [ebp - 4]
call fcn.00405228
mov esi, eax
xor eax, eax
mov dword [ebp - 0x10], eax
cmp esi, 4
jl 0x4585da
mov edi, dword [ebx]
lea eax, [ebp - 4]
call fcn.00405478
mov edx, esi
test edx, edx
jns 0x4585c3
add edx, 3
sar edx, 2
mov dword [ebp - 0x10], edx
mov ebx, dword [ebp - 0x10]
dec ebx
test ebx, ebx
jl 0x4585da
inc ebx
xor dword [eax], edi
add eax, 4
dec ebx
jne 0x4585d2
xor edi, edi
mov eax, dword [ebp - 0x10]
shl eax, 2
inc eax
mov ebx, esi
sub ebx, eax
jl 0x458615
inc ebx
mov esi, eax
lea eax, [ebp - 4]
call fcn.00405478
mov edx, dword [ebp - 4]
mov dl, byte [edx + esi - 1]
xor dl, byte [ebp + edi - 0xc]
mov byte [eax + esi - 1], dl
inc edi
and edi, 0x80000003
jns 0x458611
dec edi
or edi, 0xfffffffc
inc edi
inc esi
dec ebx
jne 0x4585ec
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404fc4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45863d
lea eax, [ebp - 4]
call fcn.00404f70
ret

Function at 0x4588d0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
xor ebx, ebx
mov ecx, 0x4bbf8c
mov eax, ebx
mov edx, 0xfffffff8
test al, 1
je 0x4588ec
shr eax, 1
xor eax, 0xedb88320
jmp 0x4588ee
shr eax, 1
inc edx
jne 0x4588df
mov dword [ecx], eax
inc ebx
add ecx, 4
cmp ebx, 0x100
jne 0x4588d8
pop ebx
ret
Function at 0x458904
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
cmp byte [0x4bbf88], 0
jne 0x458928
mov byte [0x4bbf88], 1
call fcn.004588d0
mov eax, ebx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
call fcn.0041a1d0
mov eax, dword [ebp - 4]
call fcn.0041a1e4
push edx
push eax
mov eax, dword [ebp - 8]
add eax, ebx
cdq
cmp edx, dword [esp + 4]
jne 0x458954
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x458965
jmp 0x458958
pop edx
pop eax
jle 0x458965
mov eax, dword [ebp - 4]
call fcn.0041a1e4
sub eax, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0x80000
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jge 0x45897a
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
call fcn.00402a58
mov dword [ebp - 0x10], eax
xor ecx, ecx
push ebp
push 0x458a16
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov dword [ebp - 0xc], 0xffffffff
cmp dword [ebp - 8], 0
jle 0x4589f9
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
test eax, eax
jle 0x4589df
mov ecx, dword [ebp - 0xc]
shr ecx, 8
and ecx, 0xffffff
xor ebx, ebx
mov bl, byte [edx]
xor ebx, dword [ebp - 0xc]
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x4bbf8c]
mov dword [ebp - 0xc], ecx
inc edx
dec eax
jne 0x4589b8
mov eax, dword [ebp - 0x14]
sub dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 8]
jle 0x4589f3
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 8], 0
jg 0x4589a0
and dword [ebp - 0xc], 0x7fffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458a1d
mov eax, dword [ebp - 0x10]
call fcn.00402a78
ret

Function at 0x458a28
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
cmp byte [0x4bbf88], 0
jne 0x458a41
mov byte [0x4bbf88], 1
call fcn.004588d0
or ebx, 0xffffffff
mov eax, esi
call fcn.00405228
test eax, eax
jle 0x458a7a
mov edx, 1
xor ecx, ecx
mov cl, byte [esi + edx - 1]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4bbf8c]
shr ebx, 8
and ebx, 0xffffff
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x458a54
and ebx, 0x7fffffff
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x459fc0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x459fc9
mov eax, dword [ebp - 4]
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45a057
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x2000
lea eax, [ebp - 0x2004]
push eax
mov eax, ebx
call fcn.00405854
push eax
call sub.KERNEL32.DLL_GetEnvironmentVariableW
lea edx, [ebp - 0x2004]
lea ecx, [ebp - 4]
xchg ecx, eax
call fcn.00405754
push 0x2000
lea eax, [ebp - 0x2004]
push eax
mov eax, dword [ebp - 4]
call fcn.00405854
push eax
call sub.KERNEL32.DLL_ExpandEnvironmentStringsW
mov ecx, eax
dec ecx
lea edx, [ebp - 0x2004]
mov eax, esi
call fcn.00405754
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a05e
lea eax, [ebp - 4]
call fcn.00405660
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00405ae0
xor eax, eax
push ebp
push 0x45a251
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405854
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x45a235
test al, 0x10
jne 0x45a239
xor ebx, ebx
jmp 0x45a23b
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a258
lea eax, [ebp - 4]
call fcn.00405660
ret
Function at 0x45a260
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00405ae0
xor eax, eax
push ebp
push 0x45a3a8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.0040597c
je 0x45a385
mov eax, dword [ebp - 4]
call fcn.00405864
test eax, eax
jle 0x45a2c4
mov esi, 1
mov edx, dword [ebp - 4]
cmp word [edx + esi*2 - 2], 0x2f
jne 0x45a2c0
mov edx, dword [ebp - 4]
mov word [edx + esi*2 - 2], 0x5c
inc esi
dec eax
jne 0x45a2ab
mov eax, dword [ebp - 4]
call fcn.00405864
mov edx, dword [ebp - 4]
cmp word [edx + eax*2 - 2], 0x5c
je 0x45a2e4
lea eax, [ebp - 4]
mov edx, 0x45a3c0
call fcn.00405870
lea eax, [ebp - 0xc]
call fcn.00405660
mov esi, 1
xor edi, edi
lea eax, [ebp - 0x10]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405a00
mov eax, dword [ebp - 0x10]
mov edx, 0x45a3c8
call fcn.0040597c
jne 0x45a31c
mov bl, 1
jmp 0x45a375
xor ebx, ebx
jmp 0x45a375
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
mov dx, word [edx + esi*2 - 2]
call fcn.00405788
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
call fcn.00405870
mov eax, dword [ebp - 0xc]
cmp word [eax + esi*2 - 2], 0x5c
jne 0x45a374
inc edi
test bl, bl
je 0x45a350
cmp edi, 3
jg 0x45a354
test bl, bl
jne 0x45a374
mov eax, dword [ebp - 0xc]
call fcn.0045a200
test al, al
jne 0x45a374
push 0
mov eax, dword [ebp - 0xc]
call fcn.00405854
push eax
call sub.KERNEL32.DLL_CreateDirectoryW
test eax, eax
je 0x45a385
inc esi
mov eax, dword [ebp - 4]
call fcn.00405864
cmp esi, eax
jle 0x45a320
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a3af
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00405678
lea eax, [ebp - 4]
call fcn.00405660
ret
Function at 0x45b86c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00405ae0
xor eax, eax
push ebp
push 0x45b914
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x45b8f4
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x40
mov eax, dword [ebp - 4]
call fcn.0045a0f4
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x45b8e3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetFileSize
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b8ea
mov eax, dword [ebp - 0xc]
call fcn.0045a0ec
ret

Function at 0x45b928
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x45b931
mov eax, dword [ebp - 4]
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
call fcn.00405ae0
xor eax, eax
push ebp
push 0x45ba81
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00405854
push eax
call sub.KERNEL32.DLL_CreateFileW
mov dword [ebp - 0xc], eax
xor ebx, ebx
xor eax, eax
mov dword [edi], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x45b99d
xor eax, eax
mov dword [esi], eax
jmp 0x45ba6b
xor eax, eax
push ebp
push 0x45ba64
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.0045a0e0
mov dword [ebp - 0x10], 0x2001
mov eax, dword [esi]
cmp eax, dword [ebp - 0x10]
jge 0x45b9cb
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x2011]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x45ba41
mov dword [ebp - 0x10], 0xffffffff
jmp 0x45ba41
mov edx, dword [ebp - 0x10]
add edx, ebx
mov eax, edi
call fcn.00402a98
lea edx, [ebp - 0x2011]
mov eax, dword [edi]
add eax, ebx
mov ecx, dword [ebp - 0x10]
call fcn.00409630
add ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add eax, ebx
cmp eax, dword [esi]
jle 0x45ba23
mov eax, dword [esi]
sub eax, ebx
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x2011]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_ReadFile
test eax, eax
je 0x45ba4b
cmp dword [ebp - 0x10], 0
jle 0x45ba4b
cmp ebx, dword [esi]
jl 0x45b9f2
mov dword [esi], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ba6b
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ba88
lea eax, [ebp - 4]
call fcn.00405660
ret
Function at 0x45bb5c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00405410
xor eax, eax
push ebp
push 0x45bc54
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404f70
push ebx
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00456e08
mov eax, dword [ebp - 0xc]
call fcn.00405420
push eax
push esi
call sub.KERNEL32.DLL_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x45bc36
push ebx
push esi
call sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x45bc2f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
jne 0x45bbd9
call fcn.004049f8
jmp 0x45bc36
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_LockResource
mov edi, eax
test edi, edi
je 0x45bc10
push ebx
push esi
call sub.KERNEL32.DLL_SizeofResource
mov ebx, eax
test ebx, ebx
jle 0x45bc10
mov eax, dword [ebp + 8]
mov edx, ebx
call fcn.004055ac
mov eax, dword [ebp + 8]
call fcn.00405478
mov ecx, ebx
mov edx, edi
call fcn.00409630
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bc36
mov eax, dword [ebp - 8]
call fcn.00409640
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FreeResource
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bc5b
lea eax, [ebp - 0xc]
call fcn.00404f70
lea eax, [ebp - 4]
call fcn.00404f70
ret
Function at 0x45be80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
lea edi, [ebp - 0x50]
mov ecx, 0x11
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405410
mov eax, dword [ebp - 8]
call fcn.00405410
xor eax, eax
push ebp
push 0x45c01f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
call fcn.00404f70
cmp dword [ebp - 4], 0
je 0x45bf45
mov eax, dword [ebp - 4]
cmp byte [eax], 0x22
jne 0x45befa
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x45c038
mov edx, 0x45c038
mov eax, dword [ebp - 4]
call fcn.00456e88
jmp 0x45bf05
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00405008
lea eax, [ebp - 0x68]
mov edx, dword [ebp - 0xc]
call fcn.00405844
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
call fcn.0045ae2c
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0xc]
call fcn.004051f0
mov eax, dword [ebp - 0xc]
call fcn.00405228
test eax, eax
jle 0x45bf45
mov eax, dword [ebp - 0xc]
call fcn.00405228
mov edx, eax
dec edx
lea eax, [ebp - 0xc]
call fcn.004055ac
cmp dword [ebp - 0xc], 0
jne 0x45bf8f
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push dword [ebp - 4]
push 0x45c044
push dword [ebp - 8]
lea eax, [ebp - 0x6c]
mov edx, 3
call fcn.004052e8
mov eax, dword [ebp - 0x6c]
call fcn.00405420
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x45bfd8
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405420
push eax
push 0
push 0x20
push 0
push 0
push 0
push dword [ebp - 4]
push 0x45c044
push dword [ebp - 8]
lea eax, [ebp - 0x70]
mov edx, 3
call fcn.004052e8
mov eax, dword [ebp - 0x70]
call fcn.00405420
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, dword [ebp - 0x60]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x5c]
push eax
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c026
lea eax, [ebp - 0x70]
mov edx, 2
call fcn.00404f94
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.00405678
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404f94
ret
Function at 0x45cd5c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405410
mov eax, dword [ebp - 8]
call fcn.00405410
xor eax, eax
push ebp
push 0x45ce3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0045cc9c
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
call fcn.00405008
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.00405420
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x45ce18
xor eax, eax
push ebp
push 0x45ce11
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
mov eax, dword [ebp - 8]
call fcn.00405420
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ce18
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ce42
lea eax, [ebp - 0x18]
call fcn.00404f70
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404f94
ret

Function at 0x45ce4c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405410
mov eax, dword [ebp - 8]
call fcn.00405410
xor eax, eax
push ebp
push 0x45cf29
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0045cc9c
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.00405008
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.00405420
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x45cf06
xor eax, eax
push ebp
push 0x45ceff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0xc]
push eax
push ebx
push 3
push 0
mov eax, dword [ebp - 8]
call fcn.00405420
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45cf06
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45cf30
lea eax, [ebp - 0x14]
call fcn.00404f70
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404f94
ret
Function at 0x45cf3c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405410
mov eax, dword [ebp - 8]
call fcn.00405410
mov eax, dword [ebp - 0xc]
call fcn.00405410
xor eax, eax
push ebp
push 0x45d03c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0045cc9c
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
call fcn.00405008
mov ebx, 0xf003f
cmp byte [ebp + 0xc], 0
je 0x45cfa2
add ebx, 0x100
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
call fcn.00405420
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x45d019
xor eax, eax
push ebp
push 0x45d012
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.00405228
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405420
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.00405420
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d019
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d043
lea eax, [ebp - 0x18]
call fcn.00404f70
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404f94
ret

Function at 0x45d4c0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405410
mov eax, dword [ebp - 8]
call fcn.00405410
xor eax, eax
push ebp
push 0x45d5a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0045cc9c
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.00405008
mov esi, 0xf003f
test bl, bl
je 0x45d51c
add esi, 0x100
lea eax, [ebp - 0x10]
push eax
push esi
push 0
mov eax, dword [ebp - 4]
call fcn.00405420
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x45d57d
xor eax, eax
push ebp
push 0x45d576
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00405420
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegDeleteValueA
test eax, eax
sete byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d57d
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d5a7
lea eax, [ebp - 0x14]
call fcn.00404f70
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404f94
ret
Function at 0x45d61c
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405410
mov eax, dword [ebp - 8]
call fcn.00405410
xor eax, eax
push ebp
push 0x45d6fc
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0045cc9c
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.00405008
mov esi, 0xf003f
test bl, bl
je 0x45d678
add esi, 0x100
lea eax, [ebp - 0x10]
push eax
push esi
push 0
mov eax, dword [ebp - 4]
call fcn.00405420
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x45d6d9
xor eax, eax
push ebp
push 0x45d6d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00405420
push eax
mov eax, dword [ebp - 0x10]
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 0x45d6d9
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d703
lea eax, [ebp - 0x14]
call fcn.00404f70
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404f94
ret
Function at 0x45d874
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405410
xor eax, eax
push ebp
push 0x45da88
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
test edi, edi
je 0x45da4d
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x45daa4
mov edx, 0x45dab0
mov eax, dword [ebp - 4]
call fcn.00456d0c
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 4]
call fcn.00405008
cmp dword [ebp - 4], 0
je 0x45d90b
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x45d90b
lea eax, [ebp - 4]
push eax
mov ecx, 0x7fffffff
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.00405480
lea eax, [ebp - 8]
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00405420
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x45da4d
xor edx, edx
push ebp
push 0x45da46
push dword fs:[edx]
mov dword fs:[edx], esp
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x1c], 0x400
mov dword [ebp - 0x18], 0x400
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
call fcn.004055ac
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.004055ac
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
call fcn.00405478
push eax
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
call fcn.00405478
push eax
push esi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumValueA
mov ebx, eax
test ebx, ebx
jne 0x45da27
mov eax, dword [ebp - 0x14]
mov al, byte [eax]
test al, al
jne 0x45d9a8
mov edx, dword [ebp - 0x10]
cmp byte [edx], 0
je 0x45da26
test al, al
jne 0x45d9c9
lea edx, [ebp - 0x28]
mov eax, 0x45dabc
call fcn.0045846c
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x14]
mov ecx, 0x45dad4
call fcn.00405274
mov eax, dword [ebp - 0x14]
call fcn.00405420
mov edx, eax
lea eax, [ebp - 0x130]
call fcn.00403920
lea edx, [ebp - 0x130]
lea eax, [ebp - 0x30]
call fcn.004051cc
push dword [ebp - 0x30]
push 0x45dae0
mov eax, dword [ebp - 0x10]
call fcn.00405420
mov edx, eax
lea eax, [ebp - 0x134]
call fcn.00405160
push dword [ebp - 0x134]
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.004052e8
mov edx, dword [ebp - 0x2c]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
test ebx, ebx
je 0x45d93f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45da4d
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45da8f
lea eax, [ebp - 0x134]
call fcn.00404f70
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.00404f94
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404f94
lea eax, [ebp - 4]
call fcn.00404f70
ret