joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c0bf
Capabilities:
Enumerate files on windows

Disassembly:
push 0x278
mov eax, 0x457f9c
call fcn.00446f9b
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
mov ebx, edx
mov esi, ecx
cdq
mov ecx, 0x250
idiv ecx
mov dword [ebp - 0x274], esi
test eax, eax
je 0x40c0f4
mov eax, edi
call fcn.0040c8d3
push 0x47aa78
lea ecx, [ebp - 0x270]
call fcn.00402325
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 0x270]
call fcn.0040b737
pop ecx
push eax
call fcn.0040a79c
mov ecx, dword [ebp - 0x274]
mov eax, ecx
call fcn.0040a7ac
test al, al
je 0x40c144
mov esi, dword [ecx + 0x10]
mov ecx, dword [ebp - 0x270]
add ecx, 0xfffffff0
call fcn.004034fb
mov eax, esi
jmp 0x40c26c
and dword [ebp - 0x268], 0
push 0x24c
lea eax, [ebp - 0x264]
push 0
push eax
call fcn.00444550
add esp, 0xc
lea eax, [ebp - 0x268]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x26c], eax
cmp eax, 0xffffffff
jne 0x40c190
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x274]
call fcn.0040a783
mov esi, dword [eax + 0x10]
jmp 0x40c12f
mov byte [ebp - 4], 1
mov ecx, dword [edi + 0xc]
test ecx, ecx
jne 0x40c19f
xor esi, esi
jmp 0x40c1ae
mov eax, dword [edi + 0x14]
sub eax, ecx
cdq
mov esi, 0x250
idiv esi
mov esi, eax
mov ebx, dword [edi + 0x10]
mov eax, ebx
sub eax, ecx
cdq
mov ecx, 0x250
idiv ecx
cmp eax, esi
jae 0x40c1d5
lea eax, [ebp - 0x268]
push eax
push 1
push ebx
call fcn.0040c9ee
mov dword [edi + 0x10], eax
jmp 0x40c201
lea esi, [ebp - 0x27c]
call fcn.00423113
push dword [ebp - 0x278]
lea eax, [ebp - 0x268]
push dword [ebp - 0x27c]
push eax
lea eax, [ebp - 0x284]
push eax
mov eax, edi
call fcn.0040c938
and dword [ebp - 4], 0
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c190
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x274]
jmp 0x40c18b
call fcn.00446ff7
ret 4

Function at 0x40c2c5
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x4572ef
call fcn.00446efc
mov esi, ecx
call fcn.0040a515
cmp dword [ebp + 8], 0
je 0x40c333
push dword [ebp + 8]
call fcn.00443826
pop ecx
cmp eax, 3
jb 0x40c333
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00401db9
and dword [ebp - 4], 0
push 0x5c
push 0x2f
lea ebx, [ebp - 0x10]
call fcn.00409d6f
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
test bl, bl
jne 0x40c324
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0040a783
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004034fb
mov al, bl
jmp 0x40c341
mov eax, dword [esi]
push 0x80070057
mov ecx, esi
call dword [eax + 4]
xor al, al
call fcn.00446fd4
ret 4
Function at 0x40c349
Capabilities:
Get file size
Read file on windows

Disassembly:
push 8
mov eax, 0x45786e
call fcn.00446efc
mov edi, ecx
cmp dword [ebp + 8], 0
je 0x40c48f
push dword [ebp + 8]
call fcn.00443826
pop ecx
cmp eax, 4
jb 0x40c48f
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00401db9
and dword [ebp - 4], 0
mov ebx, str.file:___
push ebx
lea esi, [ebp - 0x10]
call fcn.00401f4b
test eax, eax
jne 0x40c3cd
mov eax, dword [ebp - 0x10]
mov esi, dword [eax - 0xc]
push ebx
call fcn.00443826
sub esi, eax
pop ecx
lea eax, [ebp + 8]
push eax
mov eax, esi
lea ecx, [ebp - 0x10]
call fcn.00401ff6
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00402372
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004034fb
push 0x5c
push 0x2f
lea ebx, [ebp - 0x10]
call fcn.00409d6f
mov esi, edi
call fcn.0040a515
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0040f681
test al, al
jne 0x40c435
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, edi
call fcn.0040a783
mov edi, dword [eax + 0x10]
lea esi, [ebp + 8]
call fcn.0040f645
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004034fb
mov eax, edi
jmp 0x40c49e
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [ebp + 0xc]
push ebx
mov ecx, eax
call fcn.0040b557
push eax
mov esi, edi
call fcn.0040a79c
mov eax, edi
call fcn.0040a7ac
test al, al
je 0x40c462
mov edi, dword [edi + 0x10]
jmp 0x40c41e
mov eax, dword [ebx + 4]
mov ebx, dword [ebx]
and dword [ebp - 0x14], 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40c45d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, edi
call fcn.0040a783
jmp 0x40c45d
mov eax, dword [edi]
push 0x80070057
mov ecx, edi
call dword [eax + 4]
mov eax, dword [edi + 0x10]
call fcn.00446fd4
ret 8
Function at 0x40c4a6
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x28
mov eax, 0x45783b
call fcn.00446efc
mov edi, ecx
cmp dword [ebp + 0xc], 0
je 0x40c650
push dword [ebp + 0xc]
call fcn.00443826
pop ecx
cmp eax, 4
jb 0x40c650
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00401db9
and dword [ebp - 4], 0
push 0x5c
push 0x2f
lea ebx, [ebp - 0x10]
call fcn.00409d6f
push 0x464c78
mov esi, edi
call fcn.004075d9
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040f681
test al, al
jne 0x40c550
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
call fcn.0040a783
mov edi, dword [eax + 0x10]
lea esi, [ebp + 0xc]
call fcn.0040f645
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004034fb
mov eax, edi
jmp 0x40c662
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0040b3fa
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.0040b5c8
test al, al
jne 0x40c591
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x2c]
call fcn.00405db9
mov edi, dword [eax + 0x10]
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 1
call fcn.0040b42f
jmp 0x40c536
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x30]
mov dword [ebp - 0x18], ebx
push dword [ebp - 0x34]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40c5bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
call fcn.0040a783
jmp 0x40c57f
push dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
call fcn.0040b7fa
cmp eax, ebx
pop ecx
jge 0x40c5d7
mov esi, dword [ebp + 8]
push eax
call fcn.0040a79c
jmp 0x40c57f
cmp eax, 1
jne 0x40c5ff
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push 0xb
mov ecx, esi
call dword [eax + 4]
mov esi, dword [esi + 0x10]
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 1
call fcn.0040b42f
mov edi, esi
jmp 0x40c536
push dword [ebp - 0x30]
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.004081c1
push edi
mov byte [ebp - 4], 3
call fcn.00407611
mov eax, dword [ebp - 0x14]
push dword [eax - 0xc]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
cmp eax, ebx
jne 0x40c62c
call fcn.0040357d
mov esi, dword [ebp + 8]
push 8
mov dword [edi + 8], eax
pop eax
mov word [edi], ax
call fcn.0040a515
mov ecx, dword [ebp - 0x14]
mov edi, dword [esi + 0x10]
add ecx, 0xfffffff0
call fcn.004034fb
jmp 0x40c582
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push 0x80070057
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi + 0x10]
call fcn.00446fd4
ret 8
Function at 0x40c66a
Capabilities:
Create process on windows

Disassembly:
push 4
mov eax, 0x4572ef
call fcn.00446efc
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x40c75e
push dword [ebp + 0xc]
call fcn.00443826
pop ecx
cmp eax, 3
jb 0x40c75e
push 0x47aa78
lea ecx, [ebp - 0x10]
call fcn.00402325
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.00402555
push 0x5c
push 0x2f
lea ebx, [ebp - 0x10]
call fcn.00409d6f
cmp dword [ebp + 0x10], esi
je 0x40c71d
push dword [ebp + 0x10]
call fcn.00443826
pop ecx
test eax, eax
je 0x40c71d
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
dec eax
push eax
mov ecx, ebx
call fcn.0040c877
push 0x5c
pop ecx
cmp cx, ax
je 0x40c6ef
push 0x464fdc
mov ecx, ebx
call fcn.00402555
push dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
call fcn.00402555
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
mov ebx, eax
cmp ebx, esi
je 0x40c74a
push esi
push esi
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHOpenFolderAndSelectItems]
push ebx
call dword [sym.imp.SHELL32.dll_ILFree]
jmp 0x40c73e
mov edi, dword [ebp - 0x10]
push 0xa
push esi
push esi
push edi
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jbe 0x40c74a
mov esi, dword [ebp + 8]
call fcn.0040a515
lea ecx, [edi - 0x10]
call fcn.004034fb
mov al, 1
jmp 0x40c76d
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push 3
call dword [eax + 4]
lea ecx, [edi - 0x10]
call fcn.004034fb
jmp 0x40c76b
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push 0x80070057
call dword [eax + 4]
xor al, al
call fcn.00446fd4
ret 0xc
Function at 0x40d40d
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458680
mov eax, dword fs:[0]
push eax
mov eax, 0x2480
call fcn.00447af0
mov eax, dword [0x477af4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x2484], eax
mov eax, esi
mov dword [ebp - 0x2488], esi
call fcn.0040d15f
mov eax, dword [ebp + 8]
push dword [ebp - 0x2484]
xor ebx, ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x20]
mov ecx, edi
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
call fcn.00401db9
mov al, byte [ebp + 0x10]
mov byte [ebp - 4], 1
mov byte [esi + 0x25], al
lea eax, [esi + 0x28]
push eax
call fcn.0041980b
mov byte [ebp - 4], 2
mov eax, dword [esi + 0x14]
cmp dword [eax + 0x18], ebx
jne 0x40d4a8
push 0x80040007
mov eax, esi
call fcn.0040d27a
jmp 0x40d5ae
mov ecx, dword [edi]
cmp dword [ecx - 0xc], ebx
jne 0x40d4d6
push 0x80070057
mov eax, esi
call fcn.0040d27a
mov eax, dword [esi + 0x10]
push str.shared::lite::data::CInternetResource::CInternetResource
push eax
push ebx
call fcn.00429b80
mov ecx, eax
call fcn.00429e30
jmp 0x40d5ae
cmp byte [esi + 0x25], bl
jne 0x40d5cc
lea eax, [ebp - 0x2480]
call fcn.0040e504
push 4
pop eax
push 0x50
pop ecx
push eax
push dword [0x465468]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2480]
push 0x21
push eax
mov dword [ebp - 0x30], 2
mov word [ebp - 0x34], cx
call fcn.0044447c
push eax
call fcn.00403488
add esp, 0x14
lea eax, [ebp - 0x2480]
call fcn.0040e504
mov ecx, dword [edi]
lea eax, [ebp - 0x2480]
push eax
call fcn.0040e0fd
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x18]
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x34]
lea ecx, [ebp - 0x243e]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 0x18], eax
cmp eax, ebx
jne 0x40d569
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov ecx, eax
call fcn.0040d18d
jmp 0x40d5ae
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x2038]
push ecx
push str.HEAD
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [esi + 0x1c], eax
cmp eax, ebx
je 0x40d5e6
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x40d5a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov ecx, eax
call fcn.0040d18d
call fcn.0040a515
mov byte [esi + 0x24], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00443817
leave
ret 0xc
mov eax, dword [eax + 0x18]
push ebx
push 0x4000000
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [esi + 0x1c], eax
cmp eax, ebx
jne 0x40d5a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov ecx, eax
call fcn.0040d18d
jmp 0x40d5aa
Function at 0x40d86c
Capabilities:
Read data from internet
Receive data

Disassembly:
push 0x20
mov eax, 0x457314
call fcn.00446efc
mov esi, ecx
mov eax, esi
call fcn.0040d853
test al, al
jne 0x40d892
mov eax, 0x80040007
call fcn.00446fd4
ret 4
call fcn.0040a515
push 0x400
lea eax, [ebp - 0x2c]
push eax
call fcn.0040b3fa
xor ebx, ebx
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.0040b5c8
test al, al
jne 0x40d8d2
lea edi, [ebp - 0x24]
call fcn.00405db9
mov esi, dword [esi + 0x10]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
call fcn.0040b42f
mov eax, esi
jmp 0x40d88a
cmp byte [esi + 0x25], bl
je 0x40d8e5
mov edi, dword [esi + 0x1c]
mov dword [ebp - 0x10], ebx
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x40d93b
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x14]
mov ecx, dword [ecx + 0x18]
push ebx
push 0x4000000
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
cmp edi, ebx
jne 0x40d8da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov ecx, eax
call fcn.0040d18d
jmp 0x40d8be
cmp dword [ebp - 0x10], 0
je 0x40d95a
push dword [ebp - 0x10]
push dword [ebp - 0x2c]
push dword [ebp + 8]
call fcn.0040b457
push eax
mov eax, esi
call fcn.0040d27a
mov eax, esi
call fcn.0040a7ac
test al, al
jne 0x40d95a
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push edi
call ebx
test eax, eax
jne 0x40d914
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov ecx, eax
call fcn.0040d18d
test edi, edi
je 0x40d96a
lea eax, [esi + 0x28]
push eax
push edi
call fcn.0040ceab
pop ecx
pop ecx
cmp byte [esi + 0x25], 0
jne 0x40d8be
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40d8be
Function at 0x41fa75
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x41fa86
mov eax, 0x80040007
jmp 0x41fae2
push ebx
push edi
push dword [ebp + 8]
lea edi, [esi + 4]
mov ecx, edi
call fcn.0040257f
and dword [esi + 8], 0
lea eax, [esi + 0x10]
lea ebx, [esi + 0x20]
and dword [ebx], 0
push eax
call fcn.00407611
mov edi, dword [edi]
push ebx
xor eax, eax
push eax
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp + 8], eax
mov eax, dword [esi]
push edi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
pop edi
pop ebx
test eax, eax
jne 0x41fae2
mov ecx, dword [ebp + 8]
dec ecx
je 0x41fadb
sub ecx, 3
jne 0x41fae2
mov dword [esi + 8], 1
jmp 0x41fae2
mov dword [esi + 8], 2
pop ebp
ret 4

Function at 0x41fae6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455b4b
mov eax, dword fs:[0]
push eax
mov eax, 0x2020
call fcn.00447af0
mov eax, dword [0x477af4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebx + 8]
xor esi, esi
cmp ecx, esi
je 0x41fc12
mov eax, dword [ebx]
cmp dword [eax], esi
je 0x41fc12
dec ecx
je 0x41fba7
dec ecx
jne 0x41fc12
mov dword [ebp - 4], 1
mov eax, dword [eax]
mov dword [ebp - 0x201c], eax
xor eax, eax
push 0x1ffe
mov word [ebp - 0x2010], ax
lea eax, [ebp - 0x200e]
push esi
push eax
mov dword [ebp - 0x2018], esi
call fcn.00444550
add esp, 0xc
push dword [ebx + 4]
lea eax, [ebp - 0x201c]
push eax
lea esi, [ebp - 0x2014]
lea edi, [ebp - 0x2010]
mov dword [ebp - 0x2014], 0x1000
call fcn.004204dd
test eax, eax
jne 0x41fc12
lea esi, [ebx + 0x10]
push esi
call fcn.00407611
mov eax, edi
push eax
call fcn.004075d9
jmp 0x41fc12
push 4
pop edi
lea edx, [ebp - 0x2020]
push edx
lea edx, [ebp - 0x2014]
push edx
mov dword [ebp - 4], esi
mov eax, dword [eax]
mov ecx, dword [ebx + 4]
lea edx, [ebp - 0x2018]
push edx
push esi
push ecx
push eax
mov dword [ebp - 0x2028], eax
mov dword [ebp - 0x2024], esi
mov dword [ebp - 0x2014], esi
mov dword [ebp - 0x2020], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x41fc12
cmp dword [ebp - 0x2018], edi
jne 0x41fc12
xor eax, eax
cmp eax, esi
jne 0x41fc12
lea esi, [ebx + 0x10]
push esi
call fcn.00407611
push 3
pop eax
mov word [esi], ax
mov eax, dword [ebp - 0x2014]
mov dword [ebx + 0x18], eax
lea eax, [ebx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00443817
leave
ret
Function at 0x41fda3
Capabilities:
Delete registry key

Disassembly:
push 0xf8
mov eax, 0x458a98
call fcn.00446efc
mov ebx, ecx
lea eax, [ebx + 0x44]
push eax
push 1
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.004205be
and dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
call fcn.004202cc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x104]
call fcn.004206bb
mov esi, eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00420309
lea esi, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.0041c265
push dword [ebp - 0x68]
call fcn.0044380c
pop ecx
lea edi, [ebp - 0x104]
lea esi, [ebx + 0x30]
call fcn.00405db9
lea edi, [ebx + 0x30]
mov eax, edi
call fcn.0040a7ac
test al, al
jne 0x41ff79
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
push 0x28
cdq
pop ecx
idiv ecx
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x41fecc
push dword [ebp + 8]
lea eax, [ebp - 0x50]
push eax
call fcn.0041f805
mov esi, ebx
mov byte [ebp - 4], 3
call fcn.0041fccd
push eax
mov esi, edi
call fcn.0040a79c
lea edi, [ebp - 0x50]
lea esi, [ebx + 0x30]
call fcn.00405db9
lea esi, [ebx + 0x30]
mov eax, esi
call fcn.0040a7ac
test al, al
jne 0x41ffa2
push dword [ebp - 0x3c]
mov edi, dword [ebp - 0x38]
lea ecx, [ebp - 0x18]
call fcn.00401db9
mov byte [ebp - 4], 4
mov eax, dword [ebx + 0x48]
push 0
push eax
push dword [ebp - 0x18]
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
call fcn.0040a783
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004034fb
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.004034fb
lea ecx, [ebp - 0x50]
call fcn.0040a4f5
jmp 0x41ff59
and dword [ebp - 0x14], 0
test eax, eax
jbe 0x41ff59
xor edi, edi
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
push 0x28
cdq
pop ecx
idiv ecx
cmp dword [ebp - 0x14], eax
jb 0x41fef0
call fcn.00443d8c
mov eax, dword [ebp - 0x28]
lea esi, [edi + eax]
lea eax, [ebp - 0xbc]
push eax
call fcn.0041fc2e
mov byte [ebp - 4], 5
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x78], eax
mov eax, dword [ebx + 0x48]
mov dword [ebp - 0x74], eax
push dword [esi]
lea ecx, [ebp - 0xbc]
call fcn.0041fda3
push eax
lea esi, [ebx + 0x30]
call fcn.0040a79c
lea eax, [ebx + 0x30]
call fcn.0040a7ac
test al, al
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 1
push eax
jne 0x41ff54
call fcn.0041fc8d
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add edi, 0x28
cmp eax, dword [ebp - 0x1c]
jb 0x41feda
jmp 0x41ff59
call fcn.0041fc8d
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
push 0x28
cdq
pop ecx
idiv ecx
test eax, eax
je 0x41ff79
lea eax, [ebx + 0x30]
call fcn.0040a7ac
test al, al
je 0x41fdda
mov ebx, dword [ebx + 0x40]
lea esi, [ebp - 0x34]
call fcn.0041c265
push dword [ebp - 0x34]
call fcn.0044380c
pop ecx
lea esi, [ebp - 0x104]
call fcn.0042068f
mov eax, ebx
call fcn.00446fd4
ret 4
mov ecx, dword [ebp - 0x3c]
mov ebx, dword [ebx + 0x40]
add ecx, 0xfffffff0
call fcn.004034fb
lea ecx, [ebp - 0x50]
call fcn.0040a4f5
jmp 0x41ff7c
Function at 0x42008d
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x456f24
call fcn.00446efc
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov edx, dword [esi + 4]
test edx, edx
jne 0x4200bc
push 0x80040007
add esi, 0x30
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi + 0x10]
jmp 0x42015d
movzx ecx, word [eax]
push 3
pop edi
cmp di, cx
je 0x4200d6
push 8
pop edi
cmp di, cx
je 0x4200d6
push 0x80020005
jmp 0x4200aa
movzx ecx, cx
xor edi, edi
cmp ecx, 3
je 0x420134
cmp ecx, 8
jne 0x420150
push dword [eax + 8]
lea ecx, [ebp + 0xc]
call fcn.00401db9
and dword [ebp - 4], edi
mov eax, dword [ebp + 0xc]
cmp dword [eax - 4], 1
mov edi, dword [eax - 0xc]
jle 0x42010b
push edi
lea ecx, [ebp + 0xc]
call fcn.00403515
mov eax, dword [ebp + 0xc]
lea ecx, [edi + edi + 2]
push ecx
push eax
push 2
push 0
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov edi, eax
call fcn.004034fb
jmp 0x420150
mov eax, dword [eax + 8]
push 4
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
add esi, 0x30
mov eax, edi
call fcn.0040a783
mov eax, dword [eax + 0x10]
call fcn.00446fd4
ret 8

Function at 0x4204dd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x420541
cmp dword [ebp + 0xc], 1
je 0x420519
cmp dword [ebp + 0xc], 2
je 0x420519
push 0xd
pop eax
jmp 0x420541
mov eax, dword [ebp - 4]
test edi, edi
je 0x42053b
test eax, eax
je 0x420536
test al, 1
jne 0x420514
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x42053b
jmp 0x420514
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8
Function at 0x4206bb
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x25c
mov eax, 0x458a38
call fcn.00446f9b
xor esi, esi
mov dword [ebp - 4], esi
mov ebx, edx
mov dword [ebp - 0x22c], esi
mov al, byte [ebx + 0x38]
and al, 1
push ecx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x228], ecx
mov byte [ebp - 0x219], al
call fcn.004202cc
mov dword [ebp - 4], esi
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x22c], 1
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x220], esi
mov eax, dword [ebp - 0x230]
cmp dword [ebp - 0x220], eax
jae 0x420832
xor eax, eax
push 0x1fc
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
call fcn.00444550
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x23c], esi
lea edi, [ebp - 0x238]
stosd dword es:[edi], eax
lea eax, [ebp - 0x23c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
mov dword [ebp - 0x234], 0xff
push dword [ebx + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
mov esi, ebx
call fcn.0040a79c
mov eax, ebx
call fcn.0040a7ac
test al, al
jne 0x420832
lea esi, [ebp - 0x268]
mov dword [ebp - 4], 1
call fcn.00420545
cmp byte [ebp - 0x219], 0
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
je 0x4207d2
push dword [ebx + 0x3c]
mov eax, esi
push 0x467424
push eax
call fcn.00402b47
add esp, 0x10
jmp 0x4207dd
lea ecx, [ebp - 0x268]
call fcn.0040257f
lea eax, [ebp - 0x268]
push eax
mov eax, dword [ebp - 0x228]
mov byte [ebp - 0x248], 1
call fcn.00420ba9
lea esi, [ebp - 0x268]
call fcn.0041c509
and dword [ebp - 4], 0
inc dword [ebp - 0x220]
xor esi, esi
jmp 0x420710
cmp dword [ebx + 0xc], 0x103
jne 0x420842
mov esi, ebx
call fcn.0040a515
mov eax, dword [ebp - 0x228]
call fcn.00446ff7
ret