joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403dc0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [ebx]
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
test esi, esi
jns 0x403ddb
push 0x80070057
call fcn.00404430
mov eax, dword [edi]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, esi
or ecx, edx
jge 0x403df7
mov eax, esi
mov ecx, edi
call fcn.00403d60
mov eax, dword [edi]
push esi
push eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403e1e
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x403e22
push ecx
push eax
call fcn.004456e5
add esp, 8
test eax, eax
js 0x403dd1
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x403dd1
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, esi
pop esi
ret

Function at 0x406d40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x4573d8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4720c0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x4720c0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov esi, ecx
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
xor edi, edi
push edi
mov dword [esp + 0x84], edi
call fcn.00445643
fldz
mov dword [esp + 0x34], eax
fstp qword [esp + 0x24]
add esp, 4
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], edx
mov dword [esp + 0x2c], edi
call fcn.00401040
mov ecx, dword [esi + 4]
push 0x3e8
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
cmp dword [esp + 0x28], edi
jne 0x406e4e
fld qword [esp + 0x20]
lea edx, [esp + 0x30]
push edx
sub esp, 8
fstp qword [esp]
call dword [sym.imp.OLEAUT32.dll_UnRegisterTypeLib]
test eax, eax
je 0x406e2e
movzx esi, word [esp + 0x30]
cmp esi, 0x7dd
jl 0x406e2e
mov edi, edi
push esi
push 0x46175c
lea edi, [esp + 0x24]
call fcn.004030f0
mov eax, dword [esp + 0x24]
add esp, 8
push eax
push 0
push 0x143
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
dec esi
cmp esi, 0x7dd
jge 0x406e00
fld qword [esp + 0x20]
lea ecx, [esp + 0x20]
push ecx
sub esp, 8
fstp qword [esp]
call dword [sym.imp.OLEAUT32.dll_UnRegisterTypeLib]
test eax, eax
je 0x406e4e
movzx eax, word [esp + 0x20]
jmp 0x406e51
or eax, 0xffffffff
push eax
push 0x46175c
lea edi, [esp + 0x24]
call fcn.004030f0
mov esi, dword [esp + 0x24]
add esp, 8
push esi
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [esi - 0x10]
mov dword [esp + 0x80], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406e96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004453ac
mov esp, ebp
pop ebp
ret
Function at 0x406f90
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, edx
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x40701a
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
test edi, edi
jns 0x406fbd
push 0x80070057
call fcn.00404430
mov eax, dword [esi]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, edi
or ecx, edx
jge 0x406fd9
mov eax, edi
mov ecx, esi
call fcn.00403d60
mov eax, dword [esi]
push edi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x406ffe
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x407002
push ecx
push eax
call fcn.004456e5
add esp, 8
test eax, eax
js 0x406fb3
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x406fb3
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, edi
pop edi
pop esi
pop ebx
ret
call fcn.00403c30
pop esi
xor eax, eax
pop ebx
ret
Function at 0x4070f0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456fbc
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4720c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.CDlgSearch5.0
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esi + 0x20], eax
mov bl, 1
mov byte [ebp - 4], bl
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esi + 0x24], eax
mov byte [ebp - 4], 2
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esi + 0x28], eax
mov byte [ebp - 4], 3
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esi + 0x2c], eax
mov byte [ebp - 4], 4
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esi + 0x30], eax
mov byte [ebp - 4], 5
push 0x18
mov dword [esi + 0x3c], edi
call fcn.004458c0
add esp, 4
cmp eax, edi
je 0x407251
mov dword [esi + 0x38], eax
mov dword [eax], eax
mov eax, dword [esi + 0x38]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x38]
mov dword [eax + 8], eax
mov eax, dword [esi + 0x38]
mov byte [eax + 0x14], bl
mov ecx, dword [esi + 0x38]
mov byte [ecx + 0x15], bl
mov byte [ebp - 4], 6
push 0x18
mov dword [esi + 0x4c], edi
call fcn.004458c0
add esp, 4
cmp eax, edi
je 0x40722d
mov dword [esi + 0x48], eax
mov dword [eax], eax
mov eax, dword [esi + 0x48]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x48]
mov dword [eax + 8], eax
mov edx, dword [esi + 0x48]
mov byte [edx + 0x14], bl
mov eax, dword [esi + 0x48]
mov byte [eax + 0x15], bl
mov dword [esi + 0x54], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], edi
call fcn.0044578d
push 0x469200
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.00447800
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], edi
call fcn.0044578d
push 0x469200
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 0x2c], vtable.std::bad_alloc.0
call fcn.00447800
int3
Function at 0x4072c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4573ac
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4720c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebx], vtable.CDlgSearch5.0
mov dword [ebp - 4], 0
lea esi, [ebx + 0x44]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 7
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x14]
call fcn.004028b0
mov esi, dword [esi + 4]
push esi
call fcn.004453a1
lea esi, [ebx + 0x34]
add esp, 4
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 8
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x10]
call fcn.004027f0
mov esi, dword [esi + 4]
push esi
call fcn.004453a1
mov byte [ebp - 4], 4
mov eax, dword [ebx + 0x30]
sub eax, 0x10
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407365
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebx + 0x2c]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407388
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebx + 0x28]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4073ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebx + 0x24]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4073ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebx + 0x20]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4073f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebx + 0x14]
test ebx, ebx
je 0x407405
push ebx
call fcn.00444b90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407c30
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4577c6
mov eax, dword fs:[0]
push eax
sub esp, 0x318
mov eax, dword [0x4720c0]
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
push 0x104
lea eax, [ebp - 0x318]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x320]
push ecx
lea ecx, [ebp - 0x318]
call fcn.00407e10
mov dword [ebp - 4], ebx
mov edx, dword [ebp - 0x320]
push 0x5c
push edx
call fcn.00445c3f
add esp, 8
cmp eax, ebx
jne 0x407ca2
or eax, 0xffffffff
jmp 0x407caa
sub eax, dword [ebp - 0x320]
sar eax, 1
mov edx, dword [section..data]
xor ecx, ecx
mov word [ebp + eax*2 - 0x316], cx
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x31c], eax
lea ecx, [ebp - 0x318]
push ecx
push str._smain.ini
lea edi, [ebp - 0x31c]
mov byte [ebp - 4], 1
call fcn.004030f0
mov edi, dword [ebp - 0x31c]
add esp, 8
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea edx, [ebp - 0x324]
mov esi, eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
jne 0x407d71
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407d41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x320]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407d6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, str.http:__127.0.0.1_YYTPRO_
jmp 0x407dee
push ebx
lea ecx, [ebp - 0x31c]
push ecx
push 0xff
lea edx, [ebp - 0x110]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x31c]
push esi
mov byte [ebp + eax - 0x110], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407dbf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x320]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407de8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x110]
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.004453ac
mov esp, ebp
pop ebp
ret
Function at 0x4080a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4080b8
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4080ea
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4080e6
cmp esi, eax
jae 0x4080ea
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4080d8
cmp esi, eax
jb 0x4080f0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x409a30
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457728
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x4720c0]
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, ecx
lea esi, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.00443000
sub esp, 8
fstp qword [esp]
push 0x461f24
call fcn.004030f0
mov eax, dword [ebp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add esp, 0xc
push 0x10
lea ecx, [ebp - 0x30]
push ecx
push 0x12
push 0x400
mov dword [ebp - 0x188], eax
call esi
lea edx, [ebp - 0x30]
push edx
call fcn.00445940
add esp, 4
push 0x10
mov dword [ebp - 0x184], eax
lea eax, [ebp - 0x30]
push eax
push 0x10
push 0x400
call esi
lea ecx, [ebp - 0x30]
push ecx
call fcn.00445940
add esp, 4
push 0x10
lea edx, [ebp - 0x50]
push edx
push 0xe
push 0x400
mov dword [ebp - 0x180], eax
call esi
push 0x10
lea ecx, [ebp - 0x70]
push ecx
push 0xf
lea eax, [ebp - 0x50]
push 0x400
mov dword [ebp - 0x17c], eax
call esi
push 0x10
lea eax, [ebp - 0x30]
push eax
push 0x1010
lea edx, [ebp - 0x70]
push 0x400
mov dword [ebp - 0x178], edx
call esi
lea ecx, [ebp - 0x30]
push ecx
call fcn.00445940
mov ecx, dword [edi]
add esp, 4
push 0x100
lea edx, [ebp - 0x170]
push edx
mov dword [ebp - 0x174], eax
lea eax, [ebp - 0x188]
push eax
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
lea eax, [ebp - 0x170]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409b53
sub eax, edx
lea edx, [ebp - 0x170]
sar eax, 1
push edx
push edi
mov ebx, eax
call fcn.004026d0
lea eax, [ebp + 8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
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.004453ac
mov esp, ebp
pop ebp
ret
Function at 0x40ae50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457685
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4720c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0x30]
xor eax, eax
cmp edx, 2
jne 0x40ae90
mov eax, edx
jmp 0x40ae97
cmp edx, 1
jne 0x40ae97
mov eax, edx
or eax, 0x40010080
cmp dword [0x474cf0], 0
mov edi, eax
mov eax, dword [ecx + 0x18]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
jne 0x40aeba
mov dword [0x474cf0], str.EDIT
mov edx, dword [ebp + 8]
push edx
lea eax, [esi + 0x30]
push eax
mov ebx, 0x474cc0
call fcn.0043f050
add esp, 8
movzx ebx, ax
test edi, edi
jne 0x40aedb
mov edi, 0x56000000
mov ecx, dword [ebp - 0x10]
xor eax, eax
push eax
push 0x200
push edi
push eax
push 0x474fa8
push ecx
lea eax, [esi + 0x10]
call fcn.0043d700
mov edx, dword [ebp + 8]
push 1
push edx
mov dword [esi + 8], eax
mov eax, dword [esi + 0x14]
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40dfe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45d930
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x4720c0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
cmp byte [edi + 0x6c], 0
jne 0x40e02c
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x64]
xor ecx, ecx
mov byte [esp + 0x13], 0
mov dword [esp + 0x14], ecx
cmp dword [eax + 0xa0], ecx
jle 0x40e1a9
test ecx, ecx
js 0x40e1d2
cmp ecx, dword [edi + 0x7c]
jge 0x40e1d2
mov eax, dword [edi + 0x78]
mov eax, dword [eax + ecx*4]
cmp dword [eax + 0x14], 0
lea ebx, [ecx*4]
je 0x40e195
mov edx, dword [eax + 0x18]
test byte [edx + 0xa0], 4
jne 0x40e195
lea esi, [esp + 0x2c]
call fcn.0040c100
mov eax, dword [esp + 0x14]
mov dword [esp + 0x48], 0
cmp eax, dword [edi + 0x7c]
jge 0x40e1d2
mov eax, dword [edi + 0x78]
mov esi, dword [eax + ebx]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [esp + 0x1c]
push ecx
add esi, 0x38
call ebx
push esi
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
test eax, eax
js 0x40e1c2
mov byte [esp + 0x48], 1
mov ax, word [esp + 0x2c]
test ax, ax
je 0x40e0db
cmp ax, 1
jne 0x40e0ed
lea eax, [esp + 0x2c]
push eax
mov ecx, 1
call fcn.004099a0
add esp, 4
mov ax, word [esp + 0x1c]
test ax, ax
je 0x40e0fd
cmp ax, 1
jne 0x40e10f
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 1
call fcn.004099a0
add esp, 4
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x2c]
call fcn.00442d50
test al, al
jne 0x40e175
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x28], esp
push esi
call ebx
lea edx, [esp + 0x3c]
push edx
push esi
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
test eax, eax
js 0x40e1c2
mov eax, dword [esp + 0x24]
mov ebx, dword [edi + 0x68]
mov edi, dword [edi + 0x64]
push eax
call fcn.00409d90
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
cmp ecx, dword [eax + 0x88]
jae 0x40e1c8
mov edx, dword [eax + 0x84]
mov edi, dword [ebp + 8]
lea eax, [edx + ecx*4]
mov ecx, dword [eax]
mov al, 1
mov byte [ecx + 0x20], al
mov byte [esp + 0x13], al
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [esp + 0x1c]
push edx
call esi
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x4c], 0xffffffff
call esi
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x64]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, dword [edx + 0xa0]
jl 0x40e046
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push eax
call fcn.00445020
push 0x80070057
call fcn.00404430
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x4352c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4720c0]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, ecx
mov ecx, dword [0x47627c]
lea eax, [ebp - 0x18]
push eax
push ecx
mov dword [0x4760d4], esi
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0
push esi
push 0
push 0
push 0x258
push 0x400
push 0
push 0
push 0xc80000
push 0x4761b0
push 0x4760e8
push 0
mov dword [ebp - 0xc], 0x258
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0x400
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
jne 0x435347
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004453ac
mov esp, ebp
pop ebp
ret
mov edx, dword [0x47627c]
push edx
push esi
call dword [sym.imp.USER32.dll_SetParent]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
push 1
push eax
push ecx
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [ebp + 8]
push edx
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebp - 8]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004453ac
mov esp, ebp
pop ebp
ret
Function at 0x4414b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4720c0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov eax, ecx
mov esi, dword [eax + 4]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x220]
push edx
xor edi, edi
or esi, 0x2001f
push esi
push edi
mov dword [ebp - 0x224], eax
mov eax, dword [eax]
push ecx
push eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x220], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x218]
mov ebx, eax
cmp ebx, edi
jne 0x441544
xor eax, eax
cmp ecx, edi
je 0x441526
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x220]
and esi, 0x300
mov ebx, eax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], esi
cmp eax, edi
je 0x441564
cmp ecx, edi
je 0x44154f
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004453ac
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x230]
push eax
push edi
push edi
push edi
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x20c]
push eax
push edi
push ecx
mov dword [ebp - 0x21c], 0x100
call esi
test eax, eax
jne 0x4415ec
jmp 0x4415a0
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x218]
call fcn.004414b0
mov ebx, eax
cmp ebx, edi
jne 0x441642
lea edx, [ebp - 0x230]
push edx
mov edx, dword [ebp - 0x218]
push edi
push edi
push edi
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push edi
push edx
mov dword [ebp - 0x21c], 0x100
call esi
test eax, eax
je 0x4415a0
mov eax, dword [ebp - 0x218]
cmp eax, edi
je 0x441603
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x218], edi
mov ebx, dword [ebp - 0x228]
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x214], edi
call fcn.004416e0
mov esi, eax
mov eax, dword [ebp - 0x218]
cmp eax, edi
je 0x44162d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004453ac
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x218]
cmp eax, edi
je 0x441653
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004453ac
mov esp, ebp
pop ebp
ret 4