joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4233a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x4233b4
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x4233b8
xor al, al
jmp 0x4233e1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4233d1
xor al, al
jmp 0x4233e1
mov eax, dword [ebp - 4]
and eax, 0x10
je 0x4233df
xor al, al
jmp 0x4233e1
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x42b61b
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x464074]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042b55a
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0042b930
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x42b66a
cmp dword [ebp - 0x1c], 5
jb 0x42b682
jmp 0x42b67e
cmp dword [ebp - 0x10], 1
jne 0x42b682
cmp dword [ebp - 0x1c], 4
ja 0x42b67e
jne 0x42b682
cmp dword [ebp - 0x18], 0
jbe 0x42b682
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4544a8
call fcn.0042b424
test eax, eax
jge 0x42b6a3
mov byte [0x4673e0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042ba38
add ebp, 0x78
leave
ret

Function at 0x42b922
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4665b0], 0
push esi
jne 0x42b895
call fcn.0042b7c0
test eax, eax
je 0x42b8d8
mov eax, dword [0x4665b0]
cmp eax, 1
jne 0x42b8b6
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42b8d8
pop esi
ret
push eax
call dword [0x4665b8]
test eax, eax
jne 0x42b920
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x42b8dc
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4665b0]
call dword [0x4665b8]
mov edi, eax
test edi, edi
je 0x42b903
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x42b91f
lea edi, [esi + 0xff0]
push esi
push dword [0x4665b0]
call dword [0x4665b4]
add esi, 0x10
cmp esi, edi
jb 0x42b909
mov eax, esi
pop edi
pop esi
ret
jmp 0x42b882

Function at 0x42ba38
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x464074]
jne 0x42ba42
repz ret
jmp fcn.0043260d
Function at 0x4398af
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x464ac0]
je 0x4398ca
inc edi
cmp edi, 0x17
jb 0x4398bb
cmp edi, 0x17
jae 0x439a4a
push ebp
push 3
call fcn.00441913
cmp eax, 1
pop ecx
je 0x439a16
push 3
call fcn.00441913
test eax, eax
pop ecx
jne 0x4398fe
cmp dword [0x464070], 1
je 0x439a16
cmp ebx, 0xfc
je 0x439a49
push 0x454ee0
mov ebx, 0x314
push ebx
mov ebp, 0x466bc8
push ebp
call fcn.00430ec2
add esp, 0xc
test eax, eax
je 0x439934
push esi
push esi
push esi
push esi
push esi
call fcn.0042e3ac
add esp, 0x14
push 0x104
mov esi, 0x466be1
push esi
push 0
mov byte [0x466ce5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x439978
push 0x454ec8
push 0x2fb
push esi
call fcn.00430ec2
add esp, 0xc
test eax, eax
je 0x439978
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042e3ac
add esp, 0x14
push esi
call fcn.0042e0a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4399bd
push esi
call fcn.0042e0a0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x466edc
push 0x454ec4
sub ecx, eax
push ecx
push eax
call fcn.004322be
add esp, 0x14
test eax, eax
je 0x4399bd
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042e3ac
add esp, 0x14
jmp 0x4399bf
xor esi, esi
push 0x454ec0
push ebx
push ebp
call fcn.00440306
add esp, 0xc
test eax, eax
je 0x4399df
push esi
push esi
push esi
push esi
push esi
call fcn.0042e3ac
add esp, 0x14
push dword [edi*8 + 0x464ac4]
push ebx
push ebp
call fcn.00440306
add esp, 0xc
test eax, eax
je 0x439a01
push esi
push esi
push esi
push esi
push esi
call fcn.0042e3ac
add esp, 0x14
push 0x12010
push 0x454e98
push ebp
call fcn.00441756
add esp, 0xc
jmp 0x439a49
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x439a49
cmp ebp, 0xffffffff
je 0x439a49
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x464ac4]
push dword [esi]
call fcn.0042e0a0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x441756
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043349b
xor ebx, ebx
cmp dword [0x467180], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x44182c
push 0x456764
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44190c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x456758
push edi
call esi
cmp eax, ebx
je 0x44190c
push eax
call fcn.0043342d
mov dword [esp], 0x456748
push edi
mov dword [0x467180], eax
call esi
push eax
call fcn.0043342d
mov dword [esp], 0x456734
push edi
mov dword [0x467184], eax
call esi
push eax
call fcn.0043342d
mov dword [0x467188], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00433c89
test eax, eax
pop ecx
pop ecx
je 0x4417fa
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042e3ac
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x44182c
push 0x456718
push edi
call esi
push eax
call fcn.0043342d
cmp eax, ebx
pop ecx
mov dword [0x467190], eax
je 0x44182c
push 0x456700
push edi
call esi
push eax
call fcn.0043342d
pop ecx
mov dword [0x46718c], eax
mov eax, dword [0x46718c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4418b1
cmp dword [0x467190], ecx
je 0x4418b1
push eax
call fcn.004334a4
push dword [0x467190]
mov esi, eax
call fcn.004334a4
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4418b1
cmp edi, ebx
je 0x4418b1
call esi
cmp eax, ebx
je 0x44187e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44187e
test byte [ebp - 0x18], 1
jne 0x4418b1
lea eax, [ebp - 0x10]
push eax
call fcn.00433cc0
test eax, eax
pop ecx
je 0x441899
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042e3ac
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4418a8
or dword [ebp + 0x10], 0x200000
jmp 0x4418ec
or dword [ebp + 0x10], 0x40000
jmp 0x4418ec
mov eax, dword [0x467184]
cmp eax, dword [ebp - 8]
je 0x4418ec
push eax
call fcn.004334a4
cmp eax, ebx
pop ecx
je 0x4418ec
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4418ec
mov eax, dword [0x467188]
cmp eax, dword [ebp - 8]
je 0x4418ec
push eax
call fcn.004334a4
cmp eax, ebx
pop ecx
je 0x4418ec
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x467180]
call fcn.004334a4
cmp eax, ebx
pop ecx
je 0x44190c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44190e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x448950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e8
mov eax, dword [0x464074]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2e8], ecx
push 0x64
push 0
lea eax, [ebp - 0xd0]
push eax
call fcn.0042b930
add esp, 0xc
movzx ecx, byte [ebp + 0x14]
shl ecx, 0x18
movzx edx, byte [ebp + 0x15]
shl edx, 0x10
or ecx, edx
movzx eax, byte [ebp + 0x16]
shl eax, 8
or ecx, eax
movzx edx, byte [ebp + 0x17]
or ecx, edx
push ecx
movzx eax, byte [ebp + 0x12]
shl eax, 8
movzx ecx, byte [ebp + 0x13]
or eax, ecx
push eax
movzx edx, byte [ebp + 0x10]
shl edx, 8
movzx eax, byte [ebp + 0x11]
or edx, eax
push edx
movzx ecx, word [ebp + 0xe]
push ecx
movzx edx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str._X__X__X__X__X_X
push 0x63
lea ecx, [ebp - 0xd0]
push ecx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x24
lea edx, [ebp - 0xd0]
push edx
push str.CLSID_sLocalServer32
push 0x103
lea eax, [ebp - 0x2e0]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea ecx, [ebp - 0xd4]
push ecx
lea edx, [ebp - 0x2e0]
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x448a1f
xor eax, eax
jmp 0x448a7d
mov dword [ebp - 0xd8], 1
mov dword [ebp - 0x2e4], 0x104
lea eax, [ebp - 0x2e4]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
lea edx, [ebp - 0xd8]
push edx
push 0
push 0
mov eax, dword [ebp - 0xd4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x448a6b
mov ecx, dword [ebp - 0xd4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x448a7d
mov edx, dword [ebp - 0xd4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ba38
mov esp, ebp
pop ebp
ret 0x14
Function at 0x44bd80
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450ab8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x464074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x70], ecx
mov eax, dword [ebp - 0x70]
cmp dword [eax + 0x70], 0
je 0x44bdb8
xor eax, eax
jmp 0x44bf50
mov ecx, dword [ebp - 0x70]
call fcn.00448f70
movzx ecx, byte [ebp + 8]
test ecx, ecx
jne 0x44bdd4
mov edx, dword [ebp - 0x70]
cmp dword [edx + 0x84], 1
jbe 0x44bdf0
mov ecx, dword [ebp - 0x70]
call fcn.00449230
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 0x70], eax
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0x70]
mov dword [edx + 0x18], ecx
jmp 0x44be0d
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0x84]
add eax, 1
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 0x84], eax
mov ecx, dword [ebp - 0x70]
call fcn.0044adc0
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0x88]
push eax
mov ecx, dword [ebp - 0x70]
call fcn.00448e60
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 0x8c]
push edx
mov ecx, dword [ebp - 0x70]
call fcn.00448d40
mov eax, dword [ebp - 0x70]
cmp dword [eax + 0x98], 0
je 0x44be4f
mov ecx, dword [ebp - 0x70]
add ecx, 0x9c
push ecx
mov ecx, dword [ebp - 0x70]
call fcn.00448ad0
mov edx, dword [ebp - 0x70]
cmp dword [edx + 0x90], 0
je 0x44be6d
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0x94]
push ecx
mov ecx, dword [ebp - 0x70]
call fcn.00448c20
push 0x457f20
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x70]
add edx, 0x11e8
push edx
lea ecx, [ebp - 0x20]
call fcn.004235e0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x70]
add ecx, 0x11f4
call fcn.00421fe0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
call fcn.00423790
jmp 0x44bebb
push 0
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004248f0
lea edx, [ebp - 0x6c]
push edx
lea ecx, [ebp - 0x20]
call fcn.004237c0
push eax
lea ecx, [ebp - 0x14]
call fcn.00424930
movzx eax, al
test eax, eax
je 0x44bf31
lea ecx, [ebp - 0x14]
call fcn.004207d0
mov ecx, dword [eax]
push ecx
push 0
lea ecx, [ebp - 0x14]
call fcn.004207d0
add eax, 4
push eax
mov ecx, dword [ebp - 0x70]
call fcn.0044b770
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x44bf2c
lea ecx, [ebp - 0x5c]
call fcn.00423380
mov dword [ebp - 0x5c], 0xffffffff
lea edx, [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x14]
call fcn.004207d0
mov eax, dword [eax]
push eax
push 0x59
mov ecx, dword [ebp - 0x70]
mov ecx, dword [ecx + 0x7c]
call fcn.0044d690
jmp 0x44bead
push str.ReloadDownloadtask_end
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00423560
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x44e740
Capabilities:
Print debug messages
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4507e3
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x464074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
push str.CDownload::Uninit__
push 3
call fcn.0044c770
add esp, 8
mov eax, dword [ebp - 0x20]
add eax, 0x8c
push eax
lea ecx, [ebp - 0x14]
call fcn.00420760
mov dword [ebp - 4], 0
push 2
lea ecx, [ebp - 0x1c]
call fcn.0041f2b0
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x20]
add ecx, 0x78
call fcn.0041fb40
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004207a0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x64], 0
je 0x44e831
push 0x1388
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x44e81a
push 0x3ff
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push str.Uninit::TerminateThread
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x64], 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x44f6c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450dc2
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x464074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
push str.CDownload::Init__
push 3
call fcn.0044c770
add esp, 8
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0xc], 0
je 0x44f70a
mov eax, 1
jmp 0x44f7d3
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0xb8], 0x5dc
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x64], 0
jne 0x44f780
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x68], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x6c], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x70], eax
mov edx, dword [ebp - 0x20]
add edx, 0x74
push edx
push 0
mov eax, dword [ebp - 0x20]
push eax
push 0x44f410
push 0
push 0
call fcn.00432210
add esp, 0x18
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x64], eax
mov edx, dword [ebp - 0x20]
add edx, 0x8c
push edx
lea ecx, [ebp - 0x14]
call fcn.00420760
mov dword [ebp - 4], 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.0041f2b0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x78
call fcn.0041fb40
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004207a0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x44f7f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450e2d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x464074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
call fcn.0041f220
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov dword [eax], vtable.CDownload.0
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x10], eax
mov esi, dword [ebp - 0x2c]
add esi, 0x14
mov eax, dword [ebp + 0x10]
call fcn.00409d67
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2c]
add ecx, 0x30
call fcn.0041f860
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
add ecx, 0x40
call fcn.0041f040
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x5c], 0
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x60], 0
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x64], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x74], 0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x78
call fcn.0041f9d0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x2c]
add ecx, 0x8c
call fcn.0041f040
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2c]
add ecx, 0xa8
call fcn.0041fc20
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0xb4], 0
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0xbc], 0
mov eax, dword [ebp + 0x10]
call fcn.00409ec0
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str.CDownload::CDownload__._nuiCustomID___d_nstrFilePath___s
push 3
call fcn.0044c770
add esp, 0x10
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 8], 0
jne 0x44f933
mov dword [ebp - 0x10], str.CDownload:_DownloadNotify_invalid_pointer_
push 0x45dd94
lea eax, [ebp - 0x10]
push eax
call fcn.00433307
mov ecx, dword [ebp - 0x2c]
call fcn.0044f6c0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10043a4
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x100b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push esi
mov dword [ebp - 0x154], edi
call fcn.01006ad2
mov dword [ebp - 0x144], eax
cmp eax, esi
je 0x1004575
lea eax, [ebp - 0x130]
push eax
push 0x20019
push esi
push 0x100184c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004561
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x12c]
push eax
push esi
push dword [ebp - 0x130]
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x134], 0x94
call edi
mov ebx, 0x103
jmp 0x1004547
cmp eax, esi
jne 0x1004517
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.01005f23
test eax, eax
je 0x1004517
lea eax, [ebp - 0x13c]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10044ff
lea eax, [ebp - 0x150]
push eax
push 0x1001834
push dword [ebp - 0x13c]
call fcn.01006c17
lea eax, [ebp - 0x148]
push eax
push 0x1001824
push dword [ebp - 0x13c]
call fcn.01006d7b
test eax, eax
jne 0x10044f3
push dword [ebp - 0x150]
push dword [ebp - 0x148]
push dword [ebp - 0x140]
push dword [ebp - 0x14c]
call fcn.01004255
cmp eax, esi
je 0x10044e7
push eax
push dword [ebp - 0x144]
call fcn.01006a93
push dword [ebp - 0x148]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x140]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
inc dword [ebp - 0x138]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x138]
mov dword [ebp - 0x134], 0x94
push dword [ebp - 0x130]
call edi
cmp eax, ebx
jne 0x100443a
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x154]
push 0x10042e1
push dword [edi]
call fcn.01006bd7
mov eax, dword [ebp - 0x144]
mov dword [edi], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01003217
leave
ret 8
Function at 0x100458b
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x100b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push esi
mov dword [ebp - 0x40], edi
call fcn.01006ad2
mov dword [ebp - 0x38], eax
cmp eax, esi
je 0x10046c0
lea eax, [ebp - 0x20]
push eax
push 0x20019
push esi
push 0x1001880
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10046af
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 0x20]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], 0xc
call edi
mov ebx, 0x103
jmp 0x100469b
cmp eax, esi
jne 0x100467d
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100467d
lea eax, [ebp - 0x1c]
push eax
call fcn.01005859
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x34]
push eax
push 0x1001870
push dword [ebp - 0x2c]
mov dword [ebp - 0x34], esi
call fcn.01006c17
lea eax, [ebp - 0x30]
push eax
push 0x1001860
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], esi
call fcn.01006c17
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x3c]
call fcn.01004226
cmp eax, esi
je 0x100467d
push eax
push dword [ebp - 0x38]
call fcn.01006a93
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x28]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x28]
mov dword [ebp - 0x24], 0xc
push dword [ebp - 0x20]
call edi
cmp eax, ebx
jne 0x1004606
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x40]
push 0x10042d1
push dword [edi]
call fcn.01006bd7
mov eax, dword [ebp - 0x38]
mov dword [edi], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01003217
leave
ret 8