joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42fa40
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x468918
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.0042a340
test eax, eax
je 0x42fb48
lea ecx, [esp + 0xc]
call fcn.00402e80
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.0042a340
mov ecx, eax
call fcn.00427b00
test eax, eax
je 0x42fb2f
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x42fb2f
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x42fb2f
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00403080
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x42fb11
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x42fb2f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x49ac90]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x470f20
call fcn.00403080
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x42fb90
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.0042a340
test eax, eax
je 0x42fc7f
mov ecx, edi
call fcn.0042a340
mov ecx, eax
call fcn.004279b0
test eax, eax
jne 0x42fc7f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42fc7f
mov eax, dword [0x49ac90]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x42fbf2
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.0042a340
mov ecx, eax
call fcn.00427be0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x42fc7f
cmp ebx, eax
jne 0x42fc7f
cmp dword [esp + 0x10], eax
jne 0x42fc65
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x4328c0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x468ba8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4328f9
inc eax
mov dword [esi + 0x10], eax
jmp 0x432a0c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43290d
mov eax, 0xffffffc7
jmp 0x432a0e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43291e
cmp dword [esi + 8], eax
jne 0x43290d
cmp dword [esi + 8], eax
jne 0x432937
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x432937
mov eax, 0xffffffc7
jmp 0x432a0e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43294b
push eax
mov ecx, ebx
call fcn.004320f0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00402e80
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43297c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00402ea0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00431860
test eax, eax
mov dword [esp + 0x38], eax
je 0x4329af
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x470f20
call fcn.00403080
mov eax, dword [esp + 0x38]
jmp 0x432a0e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00432720
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4329f3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00432740
mov esi, eax
test esi, esi
jne 0x432a23
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00432720
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4329c5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x470f20
call fcn.00403080
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x470f20
call fcn.00403080
mov eax, esi
jmp 0x432a0e

Function at 0x435b50
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x435bb0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x435bb0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x435bb0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x435bb0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x435bf0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43bd20
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4691d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00461ff0
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043b6c0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00461f1e
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0045e7e2
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0045e7e2
push 1
push 0
push 0
mov ecx, esi
call fcn.0045e78a
push 1
push 0
push 1
mov ecx, esi
call fcn.0045e78a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00462062
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43bea0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4691f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00461ff0
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043b6c0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00461f1e
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43bf64
cmp dword [esp + 0x40], 1
jne 0x43bf62
cmp ecx, eax
jge 0x43bf64
mov eax, ecx
cmp eax, 0xc8
jge 0x43bf70
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043bd20
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00462062
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43c6e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x469263
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045cc00
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00462298
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004637b4
test eax, eax
je 0x43c7fc
mov ecx, dword [esp + 0x3c]
call fcn.004622c5
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43c7c0
push edi
mov ecx, esi
call fcn.0045f92d
mov ecx, esi
call fcn.0043c960
cmp dword [esp + 0x38], 1
jne 0x43c7f5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0045fa68
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43f210
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43f243
push esi
call fcn.00442300
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43f23c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43f2c9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43f2b2
mov eax, dword [esi + 8]
test eax, eax
je 0x43f267
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43f2ae
cmp eax, 2
je 0x43f2b2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43f25a
cmp eax, 3
je 0x43f28d
cmp eax, 1
jne 0x43f25a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43f25a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43f25a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043f2f0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43f2d8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043f2f0
add esp, 4
pop esi
ret

Function at 0x45d9f5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45da2d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045baac
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045ba84
jmp 0x45da39
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45f0ea
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45f12c
call fcn.00464b9a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45f12c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45f123
xor eax, eax
jmp 0x45f134
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045f13a
pop edi
pop esi
pop ebx
ret 4

Function at 0x4650ca
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4650f8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x465116
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00465030
jmp 0x465116
mov eax, dword [esi + 0x14]
test eax, eax
je 0x465116
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00465030
test edi, edi
mov eax, edi
jne 0x465100
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4010f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push eax
mov esi, 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40110f
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x401120
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x442308]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
mov esi, 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40114b
xor esi, esi
test al, 0x10
je 0x401168
cmp esi, 1
jne 0x401168
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042364d
mov esp, ebp
pop ebp
ret 4
push edi
mov edi, ebx
test ebx, ebx
je 0x401225
push 0x5c
push edi
call fcn.00423ac0
mov edi, eax
add esp, 8
test edi, edi
je 0x40120d
mov eax, ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401190
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, edi
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4011a6
sub eax, esi
sar eax, 1
sub ecx, eax
mov eax, ecx
cmp eax, 0x7ffffffe
jbe 0x4011cb
xor eax, eax
mov word [ebp - 0x20c], ax
jmp 0x4011dc
push ebx
mov ecx, 0x104
lea edx, [ebp - 0x20c]
call fcn.00402640
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401204
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401225
add edi, 2
jne 0x401173
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042364d
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0042364d
mov esp, ebp
pop ebp
ret 4
Function at 0x4046b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [eax + 0x18], 8
push esi
mov esi, dword [ebp + 8]
jb 0x4046c5
mov eax, dword [eax + 4]
jmp 0x4046c8
add eax, 4
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4046f8
jle 0x40475e
and eax, 0xffff
or eax, 0x80070000
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x18], 8
mov ecx, dword [ebp - 8]
mov edx, dword [esi + 0x14]
mov dword [ebp - 4], ecx
jb 0x40470c
mov esi, dword [esi + 4]
jmp 0x40470f
add esi, 4
cmp dword [ebx + 0x18], 8
jb 0x40471a
mov eax, dword [ebx + 4]
jmp 0x40471d
lea eax, [ebx + 4]
lea edx, [edx + edx + 2]
push edx
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x404752
jle 0x40473f
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404770
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [eax + 0x18], 8
push esi
mov esi, ecx
jb 0x404782
mov eax, dword [eax + 4]
jmp 0x404785
add eax, 4
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4047ad
jle 0x404802
and eax, 0xffff
or eax, 0x80070000
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x18], 8
mov ecx, dword [ebp - 4]
push ebx
mov ebx, ecx
jb 0x4047be
mov eax, dword [esi + 4]
jmp 0x4047c1
lea eax, [esi + 4]
mov edx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4047f8
jle 0x4047e7
and eax, 0xffff
or eax, 0x80070000
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404960
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x437a3c
mov eax, dword fs:[0]
push eax
sub esp, 0x850
mov eax, dword [0x442308]
xor eax, esp
mov dword [esp + 0x848], eax
push ebx
push esi
push edi
mov eax, dword [0x442308]
xor eax, esp
push eax
lea eax, [esp + 0x860]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
xor edi, edi
push 4
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], edi
call fcn.00423f1e
add esp, 4
cmp eax, edi
je 0x4049c9
lea ecx, [esp + 0x18]
mov dword [eax], ecx
jmp 0x4049cb
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x868], 1
cmp dword [esi + 0x18], 8
jb 0x4049f1
mov esi, dword [esi + 4]
jmp 0x4049f4
add esi, 4
lea edx, [esp + 0x34]
push edx
push 0x20019
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x404a1e
mov esi, dword [esp + 0x30]
push esi
lea ecx, [esp + 0x1c]
call fcn.00405d60
jmp 0x404af6
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
push 0x400
lea ecx, [esp + 0x58]
push ecx
push edi
mov ebx, 2
push eax
mov byte [esp + 0x878], bl
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, edi
jne 0x404add
mov edi, edi
xor edx, edx
lea eax, [esp + 0x54]
mov word [esp + 0x3c], dx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, ebx
cmp cx, di
jne 0x404a70
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x40]
call fcn.00401820
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x86c], 3
call fcn.00405ef0
mov byte [esp + 0x868], bl
cmp dword [esp + 0x50], 8
jb 0x404abe
mov edx, dword [esp + 0x3c]
push edx
call fcn.00423621
add esp, 4
mov ecx, dword [esp + 0x34]
push 0x400
lea eax, [esp + 0x58]
push eax
inc esi
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x404a50
mov esi, dword [esp + 0x30]
push esi
lea ecx, [esp + 0x1c]
call fcn.00405d60
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x404b20
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x24]
push edx
push ecx
push eax
call fcn.00406b30
mov edx, dword [esp + 0x34]
push edx
call fcn.00423621
add esp, 0x14
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.00423621
mov eax, esi
add esp, 4
mov ecx, dword [esp + 0x860]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x848]
xor ecx, esp
call fcn.0042364d
mov esp, ebp
pop ebp
ret
Function at 0x406ec0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4373fb
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x442308]
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 edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x414], esi
mov dword [ebp - 0x41c], esi
cmp edi, esi
je 0x406fe4
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x414]
push eax
push esi
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x406fe4
mov eax, dword [ebp - 0x414]
cmp eax, esi
je 0x406fe4
mov dword [ebp - 0x418], esi
jbe 0x406fe4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x410]
push edx
push 0
push edi
mov dword [ebp - 0x420], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x406fe4
lea eax, [ebp - 0x41c]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x410]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406fe4
mov eax, dword [ebp - 0x41c]
mov esi, eax
mov dword [ebp - 0x424], esi
push eax
mov dword [ebp - 4], 0
call fcn.00406ec0
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x410]
push edx
push edi
call ebx
test eax, eax
jne 0x406fe4
mov eax, dword [ebp - 0x418]
inc eax
mov dword [ebp - 0x418], eax
cmp eax, dword [ebp - 0x414]
jb 0x406f47
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.0042364d
mov esp, ebp
pop ebp
ret 4