joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4112a6
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x81c
mov eax, dword [0x41e024]
xor eax, esp
mov dword [esp + 0x818], eax
mov edx, dword [0x401250]
push ebx
push esi
push edi
call fcn.00410bb5
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
push ecx
push 2
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4114cd
lea ecx, [esp + 0x10]
call fcn.00411ce9
test eax, eax
je 0x4114b7
dec dword [0x45ee04]
push 0x20
pop ebx
push 0x5c
pop ecx
call fcn.00411e2a
mov esi, 0x401f60
test eax, eax
jne 0x41131f
mov esi, dword [0x401250]
movzx eax, word [esi]
test ax, ax
je 0x411343
mov ecx, eax
call fcn.00411e2a
lea esi, [esi + 2]
test eax, eax
je 0x4114ad
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x411329
push 0x5c
pop ecx
call fcn.00411e2a
mov edi, eax
test edi, edi
je 0x4114ad
xor esi, esi
jmp 0x41137a
mov cx, word [esp + 0x10]
cmp cx, bx
je 0x41138b
call fcn.00411e58
test eax, eax
jne 0x41138b
cmp esi, 0x3ff
jae 0x411389
mov word [esp + esi*2 + 0x20], cx
inc esi
lea ecx, [esp + 0x10]
call fcn.00411ce9
test eax, eax
jne 0x411359
jmp 0x41138b
xor edi, edi
test edi, edi
je 0x4114ad
add esi, esi
mov dword [esp + 0x18], 0x100
cmp esi, 0x800
jae 0x4114ec
xor eax, eax
mov word [esp + esi + 0x20], ax
call fcn.00411c77
push 0x3d
pop ecx
call fcn.00411e2a
test eax, eax
je 0x4113c8
mov ecx, ebx
call fcn.00411e2a
push 0x200
push 0x40
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
xor ebx, ebx
test esi, esi
setne bl
jmp 0x41143b
test ebx, ebx
je 0x411490
mov dx, word [esp + 0x10]
mov cx, dx
call fcn.00411e58
test eax, eax
jne 0x41144c
mov ecx, dword [esp + 0x18]
lea eax, [ecx - 1]
cmp edi, eax
jb 0x411432
lea eax, [ecx + 0x100]
cmp eax, ecx
jb 0x41144a
mov dword [esp + 0x18], eax
add eax, eax
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
xor ebx, ebx
test eax, eax
setne bl
test eax, eax
je 0x41144c
mov dx, word [esp + 0x10]
mov esi, eax
test ebx, ebx
je 0x41143b
mov word [esi + edi*2], dx
inc edi
lea ecx, [esp + 0x10]
call fcn.00411ce9
test eax, eax
jne 0x4113e2
jmp 0x41144c
xor ebx, ebx
test ebx, ebx
je 0x411490
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.00410b87
test eax, eax
js 0x41148c
push dword [esp + 0x1c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
lea eax, [esp + 0x28]
push 1
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
test eax, eax
je 0x41149a
mov dword [0x41edf8], 0x84
jmp 0x41149a
xor ebx, ebx
jmp 0x41149a
mov dword [0x41edf8], 0x132
test esi, esi
je 0x4114a5
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
jne 0x4112ee
call fcn.00411ca3
jmp 0x4112ee
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4114d7
mov dword [0x41edf8], 0x83
mov ecx, dword [esp + 0x824]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041cc10
mov esp, ebp
pop ebp
ret
call fcn.0041cd58
int3
Function at 0x411ce9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [0x45ee04]
mov ebx, ecx
push edi
mov edi, dword [0x45ee0c]
cmp esi, edi
jne 0x411e0b
xor esi, esi
lea eax, [ebp - 4]
cmp dword [0x41e18c], 1
push esi
push eax
jne 0x411d40
push 0x10000
push 0x43ee00
push dword [0x45ee00]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411d5b
mov ecx, dword [ebp - 4]
mov eax, ecx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
jmp 0x411d99
mov edi, 0x10000
push edi
push 0x41ee00
push dword [0x45ee00]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411d6c
mov dword [0x41edf8], 0x82
xor eax, eax
jmp 0x411e25
mov eax, dword [0x460230]
push edi
push 0x43ee00
push dword [ebp - 4]
neg eax
push 0x41ee00
sbb eax, eax
and eax, 0xfde6
push 1
add eax, 3
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 4]
mov edi, eax
mov eax, dword [0x45ee14]
add eax, ecx
mov dword [0x45ee0c], edi
mov ecx, dword [0x45ee10]
mov dword [0x45ee04], esi
mov dword [0x45ee14], eax
test ecx, ecx
je 0x411dc4
xor edx, edx
div ecx
cmp eax, 0x64
jbe 0x411dc7
push 0x64
pop eax
cmp dword [0x45ee18], eax
je 0x411e09
mov ecx, dword [0x41ede8]
mov dword [0x45ee18], eax
test ecx, ecx
je 0x411e09
push esi
push eax
push 0x402
push 0x65
push ecx
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov ecx, dword [0x41ede8]
call fcn.0040ea9f
test eax, eax
jne 0x411dee
mov edi, dword [0x45ee0c]
mov esi, dword [0x45ee04]
cmp esi, edi
jge 0x411d65
mov cx, word [esi*2 + 0x43ee00]
xor eax, eax
mov word [ebx], cx
inc dword [0x45ee04]
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411e6b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x864
mov eax, dword [0x41e024]
xor eax, esp
mov dword [esp + 0x860], eax
mov eax, dword [0x45ef88]
and dword [esp + 4], 0
push ebx
push esi
push edi
push 0
push 9
push 0x110a
push dword [eax + 0x60]
mov edi, edx
mov ebx, ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [0x41edf8], 0x88
mov esi, eax
test edi, edi
je 0x411ee7
mov ecx, dword [0x45ef88]
push 0
push edi
push esi
call fcn.0040a335
lea edx, [esp + 0x18]
mov ecx, eax
call fcn.00410cb7
test eax, eax
je 0x411ee7
mov dword [0x41edf8], 0x89
jmp 0x411ffd
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x45ee00], eax
cmp eax, 0xffffffff
je 0x411fe5
and dword [0x45ee04], 0
lea ecx, [esp + 0x14]
and dword [0x45ee08], 0
push 0
push ecx
push 2
push 0x4020dc
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0x401fa0
call fcn.004124cc
mov ecx, 0x4020a4
call fcn.004124cc
mov ecx, 0x401fe0
call fcn.004124cc
mov ecx, 0x4020a8
call fcn.004124cc
test edi, edi
je 0x411f71
push edi
mov edx, 0x428
lea ecx, [esp + 0x1c]
call fcn.00404fa9
mov ecx, dword [esp + 0x10]
jmp 0x411fc9
mov ecx, dword [0x45ef88]
push esi
call fcn.0040a335
push dword [0x401268]
mov ebx, 0x428
lea ecx, [esp + 0x1c]
mov edx, ebx
mov esi, eax
call fcn.00404fa9
lea edx, [esp + 0x18]
mov ecx, esi
call fcn.00410bb5
lea edx, [esp + 0x18]
mov ecx, eax
call fcn.00412223
push dword [0x401274]
mov edx, ebx
lea ecx, [esp + 0x1c]
call fcn.00404fa9
lea edx, [esp + 0x18]
mov ecx, esi
call fcn.00410bb5
mov ecx, eax
lea edx, [esp + 0x18]
call fcn.00412223
call fcn.004126ec
push dword [0x45ee00]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411fef
mov dword [0x41edf8], 0x8a
test edi, edi
je 0x411ffd
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x86c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041cc10
mov esp, ebp
pop ebp
ret

Function at 0x412012
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [0x45ef88]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, edx
push ebx
push 9
push 0x110a
mov dword [esp + 0x18], ebx
mov esi, ecx
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [0x41edf8], 0x88
test edi, edi
je 0x412075
mov ecx, dword [0x45ef88]
push ebx
push edi
push eax
call fcn.0040a335
lea edx, [esp + 0x14]
mov ecx, eax
call fcn.00410cb7
test eax, eax
je 0x412075
mov dword [0x41edf8], 0x89
jmp 0x4120ce
push 1
mov edi, 0x4020b0
push edi
call fcn.0040eda6
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push esi
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyW]
test eax, eax
je 0x4120c7
cmp eax, 6
je 0x4120b6
xor ecx, ecx
cmp eax, 0x522
sete cl
add ecx, 0x8d
mov dword [0x41edf8], ecx
jmp 0x4120c0
mov dword [0x41edf8], 0x8f
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push edi
call fcn.0040eda6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4124ef
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push esi
push edi
push 0x22
pop eax
mov edi, ecx
mov ecx, eax
call fcn.0041269e
movzx esi, word [edi]
test si, si
je 0x412540
push ebx
push 0x5c
pop ebx
movzx eax, si
lea edi, [edi + 2]
cmp eax, 0xa
je 0x412569
cmp eax, 0xd
je 0x41254c
push 0x22
pop ecx
cmp ax, cx
je 0x412528
cmp si, bx
jne 0x41252f
mov ecx, ebx
call fcn.0041269e
movzx ecx, si
call fcn.0041269e
movzx esi, word [edi]
test si, si
jne 0x41250b
pop ebx
push 0x22
pop eax
pop edi
mov ecx, eax
pop esi
jmp fcn.0041269e
cmp dword [0x45fa0c], 0
je 0x412561
mov ecx, ebx
call fcn.0041269e
push 0x72
pop eax
jmp 0x412564
movzx eax, si
movzx ecx, ax
jmp 0x412532
cmp dword [0x45fa0c], 0
je 0x41252f
mov ecx, ebx
call fcn.0041269e
push 0x6e
pop ecx
jmp 0x412532

Function at 0x41265a
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x1c
pop esi
push 0x30
mov edi, ecx
pop ebx
mov ecx, esi
mov eax, edi
shr eax, cl
and eax, 0xf
movzx ecx, word [eax*2 + 0x402010]
test edx, edx
jne 0x412681
cmp cx, bx
je 0x412689
call fcn.0041269e
xor edx, edx
inc edx
sub esi, 4
jns 0x412667
pop edi
pop esi
test edx, edx
jne 0x41269c
mov ecx, ebx
pop ebx
jmp fcn.0041269e
pop ebx
ret

Function at 0x41269e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push esi
mov si, cx
cmp si, 0xa
je 0x4126b2
inc dword [0x45ee08]
jmp 0x4126c1
push 0xd
pop ecx
call fcn.0041269e
and dword [0x45ee08], 0
mov eax, dword [0x45ee04]
mov ecx, 0x10000
cmp eax, ecx
jae 0x4126e2
mov word [eax*2 + 0x43ee00], si
mov eax, dword [0x45ee04]
inc eax
mov dword [0x45ee04], eax
pop esi
cmp eax, ecx
je fcn.004126ec
ret

Function at 0x4126ec
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x45ee04]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x41277b
mov eax, dword [0x45ef88]
cmp dword [eax + 0x68], 4
jne 0x412747
push edi
push ebx
push ebx
push 0x20000
mov edi, 0x41ee00
push edi
push ecx
push 0x43ee00
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [0x45ee00]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
test eax, eax
je 0x412771
cmp esi, dword [ebp - 4]
jmp 0x41276f
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ecx + ecx]
push eax
push 0x43ee00
push dword [0x45ee00]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x412771
mov eax, dword [0x45ee04]
add eax, eax
cmp eax, dword [ebp - 4]
je 0x41277b
mov dword [0x41edf8], 0x8d
pop esi
mov dword [0x45ee04], ebx
pop ebx
leave
ret
Function at 0x412f4a
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x4000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x45ee48], eax
test eax, eax
je 0x41300c
mov ecx, 0xfeff
xor edi, edi
mov word [eax], cx
xor eax, eax
inc eax
mov dword [0x45ee4c], 0x2000
mov dword [0x45ee50], eax
mov dword [0x45ee1c], eax
mov dword [0x45ee20], edi
mov dword [0x45ee54], 0x402124
call fcn.0041302e
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x412ff6
mov ecx, dword [0x45ee50]
lea eax, [ebp - 4]
push edi
push eax
add ecx, ecx
mov dword [ebp - 4], edi
push ecx
push dword [0x45ee48]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x412fed
mov dword [0x45ee20], 0x8d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x413000
mov dword [0x45ee20], 0x8a
push dword [0x45ee48]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [0x45ee20]
mov eax, ecx
sub eax, 0x90
je 0x413021
dec eax
sub eax, 1
jne 0x413026
mov ecx, 0xd5
pop edi
mov eax, ecx
pop esi
leave
ret 8

Function at 0x41315b
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x18
push 0x41d528
call fcn.0041d3b4
mov ebx, edx
mov dword [ebp - 0x20], ebx
mov edi, ecx
push 0x1fa5
call fcn.0040e770
pop ecx
mov esi, eax
test esi, esi
je 0x41318d
mov ecx, esi
call fcn.0041383c
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, ebx
call fcn.0041383c
mov ecx, dword [0x45ee54]
call fcn.0041383c
mov ecx, edi
call fcn.004135aa
mov ecx, edi
call fcn.004136ad
mov ecx, edi
call fcn.004132a8
cmp dword [0x45ee20], 0
jne 0x413295
xor edx, edx
mov ebx, edx
mov esi, dword [ebp - 0x20]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x4131cb
sub esi, ecx
sar esi, 1
lea eax, [esi + 0x400]
mov dword [ebp - 4], edx
add eax, eax
call fcn.0041d410
mov dword [ebp - 0x18], esp
mov eax, esp
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xfffffffe
push dword [ebp - 0x20]
lea edx, [esi + 0x400]
mov ecx, eax
call fcn.00404fa9
mov eax, dword [ebp - 0x24]
lea esi, [eax + esi*2]
push 0x5c
pop eax
mov word [esi], ax
add esi, 2
xor eax, eax
mov word [esi], ax
mov ecx, dword [0x45ee54]
call fcn.0041383c
jmp 0x413267
mov eax, ebx
inc ebx
push 0x3ff
push esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x413295
lea eax, [ebp - 0x20]
push eax
push 9
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413267
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
call fcn.0041315b
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x45ee1c], 0
jne 0x41322a
jmp 0x413295
lea esp, [ebp - 0x38]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4132a8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x818], ecx
push esi
push edi
cmp dword [0x45ee1c], ebx
je 0x4134d3
lea eax, [ebp - 0x810]
mov dword [ebp - 0x814], 0x400
push eax
push 0
lea eax, [ebp - 0x80c]
mov edi, ebx
push eax
push 0
lea eax, [ebp - 0x814]
push eax
mov eax, dword [0x45ef88]
add eax, 0x878
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc ebx
test eax, eax
jne 0x4134d3
push 0x1fa8
call fcn.0040e770
mov esi, eax
pop ecx
test esi, esi
je 0x413334
mov ecx, esi
call fcn.0041383c
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
push 0x40212c
lea eax, [ebp - 0x808]
push 0x400
push eax
call fcn.004029ec
add esp, 0x10
lea ecx, [ebp - 0x808]
call fcn.0041383c
mov ecx, dword [0x45ee54]
call fcn.0041383c
push 0x1fa9
call fcn.0040e770
mov esi, eax
pop ecx
test esi, esi
je 0x413383
mov ecx, esi
call fcn.0041383c
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x814], 0
je 0x41339f
mov ecx, dword [0x45ef88]
lea ecx, [ecx + 0x878]
call fcn.0041383c
jmp 0x4133be
push 0x1fad
call fcn.0040e770
mov esi, eax
pop ecx
test esi, esi
je 0x4133be
mov ecx, esi
call fcn.0041383c
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [0x45ee54]
call fcn.0041383c
mov ecx, dword [ebp - 0x80c]
call fcn.004137b8
push 0x1faa
mov edi, eax
call fcn.0040e770
mov esi, eax
pop ecx
test esi, esi
je 0x4133f5
mov ecx, esi
call fcn.0041383c
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call fcn.0040e770
pop ecx
test eax, eax
je 0x413407
mov ecx, eax
call fcn.004137a5
mov ecx, dword [0x45ee54]
call fcn.0041383c
cmp dword [ebp - 0x80c], 1
je 0x413431
cmp dword [ebp - 0x80c], 2
je 0x413431
cmp dword [ebp - 0x80c], 7
je 0x413431
xor ecx, ecx
jmp 0x413434
push 2
pop ecx
mov eax, dword [ebp - 0x810]
add eax, ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4134c9
lea eax, [ebp - 0x810]
push eax
push esi
lea eax, [ebp - 0x80c]
push eax
mov eax, dword [0x45ef88]
push 0
add eax, 0x878
push eax
push dword [ebp - 0x818]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4134a3
lea eax, [ebp - 0x810]
push eax
push esi
lea ecx, [ebp - 0x80c]
call fcn.0040ed4f
test eax, eax
jne 0x4134a3
push dword [ebp - 0x80c]
mov edx, dword [ebp - 0x810]
mov ecx, esi
call fcn.004134e2
jmp 0x4134ad
mov dword [0x45ee20], 0x92
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x45ee1c], 0
mov ecx, dword [ebp - 0x818]
jne 0x4132d4
jmp 0x4134d3
mov dword [0x45ee20], 0x90
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041cc10
leave
ret
Function at 0x414023
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x85c
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x820], eax
xor ebx, ebx
mov dword [ebp - 0x814], ebx
cmp dword [edi + 0x64], ebx
je 0x4141ce
xor eax, eax
inc eax
mov dword [ebp - 0x818], eax
push eax
push dword [edi + 0x2c]
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.004029ec
add esp, 0x10
lea eax, [ebp - 0x81c]
push eax
push 0
push eax
push 0
lea eax, [ebp - 0x810]
push eax
push dword [edi + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [ebp + 0xc]
test eax, eax
jne 0x4140b1
mov eax, dword [ebp - 0x818]
inc eax
mov dword [ebp - 0x818], eax
cmp eax, 0x64
jb 0x414060
xor ebx, ebx
jmp 0x414118
cmp esi, 2
jbe 0x4140df
cmp esi, 3
je 0x4140db
cmp esi, 4
je 0x4140d4
cmp esi, 7
je 0x4140df
cmp esi, 0xb
jne 0x4140ee
and dword [ebp - 0xc], ebx
and dword [ebp - 8], ebx
push 8
jmp 0x4140e7
and dword [ebp - 0xc], ebx
push 4
jmp 0x4140e7
xor ebx, ebx
jmp 0x4140e8
xor eax, eax
mov word [ebp - 0xc], ax
push 2
pop ebx
mov dword [ebp - 0x814], ebx
push ebx
lea eax, [ebp - 0xc]
xor ebx, ebx
push eax
push esi
push ebx
lea eax, [ebp - 0x810]
push eax
push dword [edi + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x414112
mov eax, 0xa9
jmp 0x414120
mov eax, dword [ebp - 0x818]
cmp eax, 0x64
jne 0x414141
add eax, 0x46
push 0x10
push 0xa8
push eax
push dword [ebp - 0x820]
push dword [0x41edf4]
call fcn.0040eb70
add esp, 0x14
jmp 0x4141ce
push ebx
push ebx
push 0x1004
push dword [edi]
lea eax, [ebp - 0x810]
mov dword [ebp - 0x85c], 3
mov dword [ebp - 0x848], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x858], eax
mov dword [ebp - 0x854], ebx
cmp esi, 1
je 0x41418b
cmp esi, 2
je 0x41418b
mov dword [ebp - 0x840], 5
cmp esi, 7
jne 0x414195
mov dword [ebp - 0x840], 4
lea eax, [ebp - 0x85c]
push eax
push ebx
push 0x104d
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4141ce
mov ecx, dword [edi]
lea eax, [ebp - 0xc]
push esi
push dword [ebp - 0x814]
mov edx, ebx
push eax
call fcn.00414ffc
mov ecx, dword [edi]
mov edx, ebx
call fcn.0041536e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041cc10
leave
ret 8
Function at 0x4141df
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x858
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0x81c], eax
xor esi, esi
xor eax, eax
mov dword [ebp - 0x818], edi
inc esi
mov byte [ebx + 0x5c], al
cmp dword [edi + 0x20], eax
je 0x414396
mov dword [ebp - 0x850], eax
lea eax, [ebp - 0x804]
mov dword [ebp - 0x844], eax
lea eax, [ebp - 0x858]
push eax
push dword [edi + 0x10]
mov dword [ebp - 0x840], 0x400
push 0x1073
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0x20]
xor esi, esi
cmp word [eax], si
jne 0x414261
push 0x4b
pop edi
jmp 0x414376
lea ecx, [ebp - 0x814]
push ecx
push esi
push ecx
push esi
push eax
push dword [ebx + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 2
pop edi
cmp eax, edi
je 0x414280
push 0x4a
jmp 0x41425b
lea eax, [ebp - 0x80c]
push eax
push 0
lea eax, [ebp - 0x808]
push eax
push 0
lea eax, [ebp - 0x804]
push eax
push dword [ebx + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x808], 1
je 0x4142be
cmp dword [ebp - 0x808], edi
je 0x4142be
cmp dword [ebp - 0x808], 7
je 0x4142be
xor edi, edi
mov eax, dword [ebp - 0x80c]
add eax, edi
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x810], eax
test eax, eax
je 0x41436f
push 0x49
pop edi
lea ecx, [ebp - 0x80c]
push ecx
push eax
lea eax, [ebp - 0x808]
push eax
push 0
lea eax, [ebp - 0x804]
push eax
push dword [ebx + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414361
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 0x810]
lea ecx, [ebp - 0x808]
call fcn.0040ed4f
test eax, eax
jne 0x414361
push dword [ebp - 0x80c]
push dword [ebp - 0x810]
push dword [ebp - 0x808]
push eax
mov eax, dword [ebp - 0x818]
push dword [eax + 0x20]
push dword [ebx + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x414361
lea eax, [ebp - 0x804]
push eax
push dword [ebx + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x414361
xor esi, esi
inc esi
push dword [ebp - 0x810]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x414372
push 0x76
pop edi
test esi, esi
jne 0x414396
lea eax, [ebp - 0x804]
push eax
push 0x10
push 0x48
push edi
push dword [ebp - 0x81c]
push dword [0x41edf4]
call fcn.0040eb70
add esp, 0x18
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041cc10
leave
ret 8
Function at 0x414b52
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x858
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x818], ebx
push edi
mov esi, ecx
push edi
push 0x1032
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
cmp eax, 1
push 0x34
sete cl
push 0x33
lea ecx, [ecx*2 + 0x32]
push ecx
push ebx
push dword [0x41edf4]
call fcn.0040eb70
add esp, 0x14
cmp eax, 6
jne 0x414cc3
push edi
push edi
push 0xb
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
or dword [ebp - 0x814], 0xffffffff
push 2
push 0xffffffffffffffff
push 0x100c
push dword [esi]
mov dword [ebp - 0x810], edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
cmp edi, 0xffffffff
je 0x414c97
mov ebx, dword [ebp - 0x814]
test edi, edi
je 0x414c25
and dword [ebp - 0x84c], 0
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x840], eax
lea eax, [ebp - 0x854]
push eax
push edi
push 0x1073
push dword [esi]
mov dword [ebp - 0x83c], 0x400
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x414c2e
xor eax, eax
mov word [ebp - 0x80c], ax
lea eax, [ebp - 0x80c]
push eax
push dword [esi + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x414c6a
test edi, edi
je 0x414c57
push eax
push edi
push 0x1008
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x414c76
mov ecx, dword [esi]
xor edx, edx
push 1
push 0
push 0
call fcn.00414ffc
xor ebx, ebx
jmp 0x414c76
mov dword [ebp - 0x810], 1
mov ebx, edi
push 2
push ebx
push 0x100c
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x414bed
mov ebx, dword [ebp - 0x818]
push 0
push 1
push 0xb
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x810], 0
je 0x414cc3
push 0x10
push 0x58
push 0x59
push ebx
push dword [0x41edf4]
call fcn.0040eb70
add esp, 0x14
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041cc10
leave
ret 4