joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49317d
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00493320
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4932f5
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4932f5
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4932a4
jg 0x4931d6
test eax, eax
je 0x49329a
push 1
push 0x1000
call fcn.004831bc
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4931fc
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x493291
push 0x8000
push ebx
call fcn.0047c0f1
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x493228
jg 0x493223
cmp ecx, 0x1000
jb 0x493228
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00489e56
add esp, 0x10
cmp eax, 0xffffffff
je 0x49326d
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x493223
jl 0x493254
test ecx, ecx
jne 0x493215
push dword [ebp - 0xc]
push ebx
call fcn.0047c0f1
push esi
call fcn.004829bd
add esp, 0xc
xor edi, edi
jmp 0x493306
cmp byte [edi + 0x24], 0
je 0x493284
cmp dword [edi + 0x20], 5
jne 0x493284
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x49328f
mov edi, dword [edi + 0x18]
jmp 0x493291
xor edi, edi
push esi
call fcn.004829bd
pop ecx
jmp 0x493306
test ecx, ecx
jg 0x493266
jl 0x4932a4
test eax, eax
jae 0x493266
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00491520
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4932c7
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x493266
jmp 0x4932fe
push ebx
call fcn.004890a2
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x493266
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x493306
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x493303
mov edi, dword [edi + 0x18]
jmp 0x493306
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00491520
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4cd000
Capabilities:
Packed with generic packer

Disassembly:
pushal
push 0x4cd031
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x4cd03a
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [0x4cd047]
push 0
push 0
push 0
push edx
push 0
push 0
call eax
popal
jmp fcn.0046c52c
Function at 0x10027c53
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x10027c62
pop dword [ebp - 0x14]
mov eax, 0x235dd60a
sub eax, 0x135b59a8
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xbb1de7ac
add dword [ebp - 0x24], 0x93345d9f
mov dword [ebp - 0x20], 0x77efadb9
sub dword [ebp - 0x20], 0x45bc6174
mov dword [ebp - 0x1c], 0x193010e8
add dword [ebp - 0x1c], 0x331c3346
mov dword [ebp - 0x18], 0x754cf7ba
sub dword [ebp - 0x18], 0x754cf7ba
lea eax, [ebp - 0x24]
push eax
mov eax, 0x761c0487
sub eax, 0x6616737b
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x1cc060f7
add dword [ebp - 0x24], 0x57b2085f
mov dword [ebp - 0x20], 0x1752e6e2
add dword [ebp - 0x20], 0x2a197a93
mov dword [ebp - 0x1c], 0x4e17d837
sub dword [ebp - 0x1c], 0xeaa86bcb
mov dword [ebp - 0x18], 0x715e3c2c
add dword [ebp - 0x18], 0x8ea1c3d4
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xc6692f56
add eax, 0x499c60ea
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x5e1bb
push 0
call eax
mov ecx, 0x1d33deb0
add ecx, 0xe2cc6b4a
xor edx, edx
add edx, eax
mov edi, 0xe210a038
add edi, 0x2df5f3c8
add edi, dword [ebp - 0x14]
mov esi, 0x3d05850e
add esi, 0xbd662eec
mov dword [ebp - 4], 0x434226d8
mov ebx, dword [edi]
xor ebx, esi
xor dword [ebp - 0xc], 0x67a63a2
mov dword [edx], ebx
add dword [ebp - 0xc], 0xebd77bf2
add edx, 0x47ee6c15
add edx, 0xb81193ef
add edi, 0x26082b4c
add edi, 0xd9f7d4b8
loop 0x10027d86
add eax, 0x8259b802
add eax, 0x7da762b9
mov ebx, eax
add eax, 0x6fdbe35e
add eax, 0x90241ca7
mov ecx, 0xf0f4be55
sub ecx, 0xe0f4be55
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x401014
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x43b508], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x401058
call ebx
test eax, eax
jns 0x40104e
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x43b504], eax
mov dword [0x43b508], 1
mov eax, dword [0x43b504]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401074
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
test eax, eax
jne 0x4010a4
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x40109a
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x40108f
push dword [eax + 0xc]
call dword [eax + 8]
jmp 0x401094
push dword [eax + 4]
call dword [eax]
test eax, eax
je 0x4010a3
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x40121d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 8]
push eax
push 0x20019
xor esi, esi
push esi
push 0x431618
xor edi, edi
push reloc.OLEAUT32.dll_SysReAllocString
inc edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401284
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x431614
push dword [ebp - 8]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40127b
cmp dword [ebp - 4], esi
jne 0x40127b
xor edi, edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x40205b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x42f902
call fcn.0042dd62
mov edi, 0x200
push edi
call fcn.0042dc1c
pop ecx
mov dword [ebp - 0x18], eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
mov ebx, str.SoftwareAdobeAdobe_Acrobat11.0LanguageNext
push ebx
push SysReAllocString
call esi
test eax, eax
je 0x4020ee
lea eax, [ebp - 0x10]
push eax
push ebx
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push ebx
call esi
test eax, eax
je 0x4020ee
lea eax, [ebp - 0x10]
push eax
push str.SoftwareAdobeAcrobat_Reader11.0LanguageNext
push SysReAllocString
call esi
test eax, eax
je 0x4020ee
lea eax, [ebp - 0x10]
push eax
push str.SoftwareAdobeAcrobat_Reader11.0LanguageNext
push ebx
call esi
test eax, eax
je 0x4020ee
lea eax, [ebp - 0x10]
push eax
push str.SoftwareAdobeAcrobat_Reader11.0LanguageCurrent
push ebx
call esi
test eax, eax
je 0x4020ee
or esi, 0xffffffff
push dword [ebp - 0x18]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
call fcn.0042de3a
ret
mov esi, dword [ebp - 0x18]
push edi
xor ebx, ebx
push ebx
push esi
mov dword [ebp - 0x14], edi
call sub.MSVCR100.dll_memset
sub dword [ebp - 0x14], 2
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
shr eax, 1
cmp edi, ebx
jne 0x4020da
cmp dword [ebp - 0x1c], 1
jne 0x4020da
cmp eax, 4
jb 0x4020da
mov edi, dword [sym.imp.MSVCR100.dll__wcsicmp]
lea esi, [esi + eax*2 - 8]
push 0x4319b4
push esi
call edi
pop ecx
pop ecx
test eax, eax
je 0x4021b8
push 0x4319ac
push esi
call edi
pop ecx
pop ecx
test eax, eax
je 0x4021b8
movzx eax, word [esi]
mov edi, dword [sym.imp.MSVCR100.dll_iswalpha]
push eax
call edi
pop ecx
test eax, eax
je 0x4020da
movzx eax, word [esi + 2]
push eax
call edi
pop ecx
test eax, eax
je 0x4020da
movzx eax, word [esi + 4]
push eax
call edi
pop ecx
test eax, eax
je 0x4020da
cmp word [esi + 6], bx
jne 0x4020da
push esi
push 4
push dword [ebp + 8]
call fcn.00401ff1
test eax, eax
js 0x4020da
xor esi, esi
inc esi
jmp 0x4020dd
xor esi, esi
jmp 0x4020dd
Function at 0x40224f
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x43b4b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.00401622
mov ebx, eax
cmp ebx, esi
je 0x4022c0
lea ecx, [ebp - 0x214]
call fcn.0040159f
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042dc86
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4022de
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.0040224f
cmp eax, esi
jne 0x402325
lea eax, [ebp - 0x220]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call ebx
test eax, eax
je 0x4022c8
lea ecx, [ebp - 0x214]
call fcn.0040159f
push dword [ebp - 0x218]
mov ecx, edi
call fcn.0040152f
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.0040159f
mov eax, esi
jmp 0x4022af

Function at 0x4027f9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
cmp eax, esi
jne 0x402818
xor eax, eax
jmp 0x40283e
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x4021bf
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, esi
jne 0x40283b
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x403f0e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x42faca
call fcn.0042de01
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call fcn.0040244a
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x403f66
call fcn.004011f2
mov esi, eax
jmp 0x40403c
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x403f7f
call fcn.004011f2
jmp 0x40402e
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x403f75
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x403fb9
mov esi, 0x8007000e
jmp 0x404030
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00402d7a
mov dword [ebp - 4], 1
jmp 0x403fe7
cmp dword [ebp - 0x418], esi
je 0x403fb2
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x403f75
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.00403d12
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x404055
lea ecx, [ebp - 0x418]
call fcn.00401c89
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.00401c0b
mov eax, esi
call fcn.0042de5d
ret 0x10

Function at 0x4043d1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40443a
cmp dword [ebp + 0x10], 1
je 0x404412
cmp dword [ebp + 0x10], 2
je 0x404412
push 0xd
pop eax
jmp 0x40443a
mov eax, dword [ebp - 4]
test edi, edi
je 0x404434
test eax, eax
je 0x40442f
test al, 1
jne 0x40440d
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x404434
jmp 0x40440d
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc
Function at 0x4045f2
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040aa99
pop ecx
pop ecx
test eax, eax
jne 0x404612
mov eax, 0x80004005
leave
ret 0x18
push esi
push dword [ebp + 0x14]
call fcn.004044b4
pop ecx
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.0040b652
push dword [ebp + 0x18]
lea ecx, [ebp - 0x18]
push esi
call fcn.0040b24f
test al, al
jne 0x404646
xor esi, esi
inc esi
lea ecx, [ebp - 0x18]
call fcn.0040b1c6
mov eax, esi
pop esi
jmp 0x40460e
lea eax, [ebp + 0x10]
push eax
push 0xf003f
push 0
push dword [ebp + 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404674
push dword [ebp + 0x1c]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x404639

Function at 0x404678
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
lea eax, [ebp - 4]
push eax
push 0xf003f
xor esi, esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40474f
push edi
mov edi, 0xff
push 0x1fe
mov dword [ebp - 8], edi
call dword [sym.imp.MSVCR100.dll_malloc]
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x404745
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x1c]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 8]
push ecx
push eax
jmp 0x40472d
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40473a
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.00404678
pop ecx
pop ecx
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40473a
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
je 0x40473a
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push esi
push dword [ebp - 4]
mov dword [ebp - 8], edi
call ebx
test eax, eax
je 0x4046d4
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
leave
ret
Function at 0x40475e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43b4b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040aa99
pop ecx
pop ecx
test eax, eax
jne 0x40479b
mov eax, 0x80004005
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042dc86
leave
ret 0x1c
push dword [ebp + 0x14]
call fcn.004044b4
pop ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0xc], eax
call fcn.0040b652
mov ebx, dword [ebp + 0x18]
push ebx
push dword [ebp - 0xc]
lea ecx, [ebp - 0x24]
call fcn.0040b24f
xor esi, esi
test al, al
jne 0x4047d1
inc esi
lea ecx, [ebp - 0x24]
call fcn.0040b1c6
mov eax, esi
jmp 0x404787
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp ebx, esi
je 0x4047e6
push ebx
call edi
inc eax
cmp eax, 0x3fffffff
jle 0x4047ea
xor eax, eax
jmp 0x404802
lea esi, [eax + eax]
mov eax, esi
call fcn.0042dfb0
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.00404367
xor esi, esi
push esi
lea ecx, [ebp - 8]
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4047c5
cmp dword [ebp + 0x1c], esi
je 0x404830
push dword [ebp + 0x1c]
call edi
inc eax
cmp eax, 0x3fffffff
jle 0x404834
xor eax, eax
jmp 0x40484e
lea esi, [eax + eax]
mov eax, esi
call fcn.0042dfb0
mov eax, esp
push 3
push esi
push dword [ebp + 0x1c]
push eax
call fcn.00404367
xor esi, esi
push 4
lea ecx, [ebp + 0x20]
push ecx
push 4
push esi
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4047c5
Function at 0x40486f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43b4b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040aa99
pop ecx
pop ecx
test eax, eax
jne 0x4048ac
mov eax, 0x80004005
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042dc86
leave
ret 0x1c
push dword [ebp + 0x14]
call fcn.004044b4
pop ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0xc], eax
call fcn.0040b652
mov edi, dword [ebp + 0x18]
push edi
push dword [ebp - 0xc]
lea ecx, [ebp - 0x24]
call fcn.0040b24f
xor ebx, ebx
test al, al
jne 0x4048e2
inc ebx
lea ecx, [ebp - 0x24]
call fcn.0040b1c6
mov eax, ebx
jmp 0x404898
cmp edi, ebx
je 0x4048f5
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4048f9
xor eax, eax
jmp 0x40490f
lea esi, [eax + eax]
mov eax, esi
call fcn.0042dfb0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00404367
push ebx
lea ecx, [ebp - 8]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4048d6
mov eax, dword [ebp + 0x20]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404931
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x20]
push 1
push ebx
push dword [ebp + 0x1c]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4048d6
Function at 0x404965
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x43b4b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040aa99
pop ecx
pop ecx
test eax, eax
je 0x404ac0
push dword [ebp + 0x14]
call fcn.004044b4
pop ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xc], eax
call fcn.0040b652
push dword [ebp + 0x18]
lea ecx, [ebp - 0x28]
push dword [ebp - 0xc]
call fcn.0040b24f
test al, al
jne 0x4049c5
xor esi, esi
inc esi
lea ecx, [ebp - 0x28]
call fcn.0040b1c6
mov eax, esi
jmp 0x404ac5
mov esi, dword [ebp + 0x20]
test esi, esi
jne 0x4049d1
push 0x57
pop esi
jmp 0x4049b6
cmp word [esi], 1
jne 0x404ab8
cmp dword [esi + 4], 1
jne 0x404ab8
cmp dword [esi + 0x14], 0
jne 0x404ab8
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
je 0x404a02
mov esi, eax
jmp 0x4049b6
cmp dword [ebp + 0x18], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, 0x3fffffff
je 0x404a1d
push dword [ebp + 0x18]
call edi
inc eax
cmp eax, ebx
jle 0x404a21
xor eax, eax
jmp 0x404a3c
lea esi, [eax + eax]
mov eax, esi
call fcn.0042dfb0
mov eax, esp
push 3
push esi
push dword [ebp + 0x18]
push eax
call fcn.00404367
mov esi, dword [ebp + 0x20]
xor ecx, ecx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push 0xf003f
push ecx
push ecx
push ecx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x404aa5
cmp dword [ebp + 0x1c], eax
je 0x404a88
push dword [ebp + 0x1c]
call edi
inc eax
cmp eax, ebx
jle 0x404a6d
xor eax, eax
jmp 0x404a88
lea esi, [eax + eax]
mov eax, esi
call fcn.0042dfb0
mov eax, esp
push 3
push esi
push dword [ebp + 0x1c]
push eax
call fcn.00404367
mov esi, dword [ebp + 0x20]
push dword [esi + 0x10]
push dword [ebp - 0x10]
push 3
push 0
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
lea ecx, [ebp - 0x28]
call fcn.0040b1c6
xor eax, eax
jmp 0x404ac5
lea ecx, [ebp - 0x28]
call fcn.0040b1c6
mov eax, 0x80004005
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042dc86
leave
ret 0x1c
Function at 0x404ad9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x43b4b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040aa99
pop ecx
pop ecx
test eax, eax
jne 0x404b16
mov eax, 0x80004005
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042dc86
leave
ret 0x1c
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
xor esi, esi
mov ebx, 0x3fffffff
cmp dword [ebp + 0x20], esi
je 0x404b32
push dword [ebp + 0x20]
call edi
inc eax
cmp eax, ebx
jle 0x404b37
mov dword [ebp - 8], esi
jmp 0x404b54
lea esi, [eax + eax]
mov eax, esi
call fcn.0042dfb0
mov eax, esp
push 3
push esi
push dword [ebp + 0x20]
push eax
call fcn.00404367
mov dword [ebp - 8], eax
xor esi, esi
push dword [ebp + 0x14]
call fcn.004044b4
pop ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xc], eax
call fcn.0040b652
push dword [ebp + 0x18]
lea ecx, [ebp - 0x28]
push dword [ebp - 0xc]
call fcn.0040b24f
test al, al
jne 0x404b8c
xor esi, esi
inc esi
lea ecx, [ebp - 0x28]
call fcn.0040b1c6
mov eax, esi
jmp 0x404b02
cmp dword [ebp + 0x18], esi
je 0x404b9b
push dword [ebp + 0x18]
call edi
inc eax
cmp eax, ebx
jle 0x404b9f
xor eax, eax
jmp 0x404bb9
lea esi, [eax + eax]
mov eax, esi
call fcn.0042dfb0
mov eax, esp
push 3
push esi
push dword [ebp + 0x18]
push eax
call fcn.00404367
xor esi, esi
push esi
lea ecx, [ebp - 0x10]
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x404b7d
cmp dword [ebp + 0x1c], esi
je 0x404bfe
push dword [ebp + 0x1c]
call edi
inc eax
cmp eax, ebx
jg 0x404bfe
lea esi, [eax + eax]
mov eax, esi
call fcn.0042dfb0
mov eax, esp
push 3
push esi
push dword [ebp + 0x1c]
push eax
call fcn.00404367
mov esi, eax
push 0
push SysReAllocString
push dword [ebp - 8]
call fcn.00404440
add esp, 0xc
inc eax
push eax
push dword [ebp - 8]
push 3
push 0
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x404b7d