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

Disassembly:
mov eax, 0x1c10
call fcn.00401f90
mov eax, dword [0x40b0c0]
xor eax, esp
mov dword [esp + 0x1c0c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x1c1c]
push esi
mov esi, dword [esp + 0x1c24]
push edi
mov edi, dword [esp + 0x1c2c]
mov cx, word [edi]
xor eax, eax
cmp cx, word [str._MY_PATH_]
mov dword [esp + 0x18], ebp
sete al
inc eax
mov dword [esp + 0x14], eax
mov eax, edi
lea edx, [eax + 2]
xor ebx, ebx
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401460
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x14]
push edx
push edi
push eax
push ebx
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x4015f9
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp esi, ebx
je 0x40152b
push ebx
push ebx
push 0x3ff
lea ecx, [esp + 0x28]
push ecx
push 0xffffffffffffffff
push esi
push ebx
push ebx
mov byte [esp + 0x3c], bl
call ebp
push 0x7ff
lea eax, [esp + 0xc20]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
push ecx
push ebx
xor edx, edx
push ebx
mov byte [esp + 0x433], bl
mov word [esp + 0xc34], dx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
mov word [esp + 0x1c1a], dx
lea eax, [esp + 0xc1c]
mov cx, word [esi]
cmp cx, word [eax]
jne 0x401518
cmp cx, bx
je 0x401514
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x401518
add esi, 4
add eax, 4
cmp cx, bx
jne 0x4014f2
xor eax, eax
jmp 0x40151d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4015f9
lea esi, [esp + 0x1c]
jmp 0x40152d
xor esi, esi
push ebx
push ebx
push 0x7ff
lea eax, [esp + 0x428]
push eax
push 0xffffffffffffffff
push edi
push ebx
push ebx
mov byte [esp + 0x43c], bl
call ebp
push 0x7ff
lea edx, [esp + 0xc20]
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x428]
push eax
push ebx
xor ecx, ecx
push ebx
mov byte [esp + 0xc33], bl
mov word [esp + 0xc34], cx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
mov word [esp + 0x1c1a], cx
lea ecx, [esp + 0xc1c]
mov eax, edi
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4015b6
cmp dx, bx
je 0x4015b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4015b6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x401590
xor eax, eax
jmp 0x4015bb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4015f9
lea eax, [esp + 0x41c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4015d0
mov ecx, dword [esp + 0x18]
sub eax, edx
inc eax
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x420]
push edx
push eax
push ebx
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x1c1c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401f74
add esp, 0x1c10
ret
Function at 0x401620
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x408
mov eax, dword [0x40b0c0]
xor eax, esp
mov dword [esp + 0x404], eax
mov ecx, dword [esp + 0x410]
mov eax, dword [esp + 0x40c]
push esi
mov esi, dword [esp + 0x418]
lea edx, [esp + 4]
push edx
push 0x20006
push 0
push ecx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4016c9
mov eax, dword [esp + 4]
push edi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
test edi, edi
je 0x4016bb
mov byte [esp + 0xc], 0
test esi, esi
je 0x4016a9
push 0
push 0
push 0x3ff
lea ecx, [esp + 0x18]
push ecx
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [esp + 0x40b], 0
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, eax
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
mov ecx, dword [esp + 0x408]
pop esi
xor ecx, esp
call fcn.00401f74
add esp, 0x408
ret

Function at 0x401740
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
push ebx
push esi
mov esi, dword [eax + 8]
mov edx, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
lea ebx, [esi + 0x814]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40181f
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push edi
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
lea edi, [esi + 0x1014]
push edi
lea ecx, [esp + 0x24]
push ecx
push 0
lea edx, [esp + 0x24]
push edx
push ebx
push 0
push eax
mov dword [esp + 0x34], 0x400
mov dword [esp + 0x30], 0x800
call ebp
mov esi, 1
cmp eax, 0x103
je 0x401812
mov eax, dword [esp + 0x1c]
test eax, eax
jbe 0x4017df
cmp eax, 2
ja 0x4017df
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4017df
mov ecx, dword [esp + 0x28]
push ecx
push 0
push 0x4a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x401812
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
push edi
lea eax, [esp + 0x24]
push eax
push 0
lea ecx, [esp + 0x24]
push ecx
push ebx
push esi
push edx
mov dword [esp + 0x34], 0x400
mov dword [esp + 0x30], 0x800
call ebp
inc esi
cmp eax, 0x103
jne 0x4017b6
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x401830
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x180c
call fcn.00401f90
mov eax, dword [0x40b0c0]
xor eax, esp
mov dword [esp + 0x1808], eax
mov eax, dword [esp + 0x1814]
push ebx
mov ebx, dword [esp + 0x1814]
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x3ff
lea ecx, [esp + 0x818]
push ecx
push 0xffffffffffffffff
xor eax, eax
push str.Software
push eax
push eax
mov word [esp + 0x82c], ax
call edi
push 0x400
lea eax, [esp + 0x818]
push eax
xor edx, edx
push 0x40b00c
mov word [esp + 0x101e], dx
call fcn.00401000
push 0
push 0x400
lea ecx, [esp + 0x828]
push ecx
push str.MicrosoftWindowsCurrentVersion
call fcn.004010e0
push 0x400
lea edx, [esp + 0x834]
push edx
push 0x40b00c
call fcn.00401000
push 0
push 0x400
lea eax, [esp + 0x844]
push eax
push str.AppletsRegedit
call fcn.004010e0
add esp, 0x38
lea edx, [esp + 0xc]
push edx
push 0x20019
xor ecx, ecx
push ecx
lea eax, [esp + 0x820]
push eax
push 0x80000001
mov dword [esp + 0x20], 0
mov word [esp + 0x1028], cx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40195f
push ebp
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x101c]
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push str.LastKey
push eax
mov dword [esp + 0x2c], 0x3ff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x10]
push ecx
mov ebp, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
pop ebp
je 0x40196b
xor edx, edx
mov word [esp + 0x1014], dx
jmp 0x4019ba
cmp word [esp + 0x1014], 0
je 0x4019ba
push 0x400
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x101c]
xor eax, eax
push edx
mov word [esp + 0x20], ax
call fcn.00401000
movzx eax, word [0x40b00c]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00401dd3
add esp, 0x14
test eax, eax
je 0x4019ba
xor edx, edx
mov word [eax + 2], dx
cmp word [esp + 0x14], dx
jne 0x4019e0
push 0x3ff
lea ecx, [esp + 0x18]
push ecx
push 0xffffffffffffffff
xor eax, eax
push str.Computer_
push eax
push eax
mov word [esp + 0x2c], ax
call edi
xor edx, edx
mov word [esp + 0x812], dx
mov eax, dword [esi]
cmp eax, 0x80000001
je 0x4019fb
cmp eax, 0x80000002
jne 0x401a8a
mov eax, str.HKEY_LOCAL_MACHINE
jmp 0x401a00
mov eax, str.HKEY_CURRENT_USER
push 0
push 0x400
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.004010e0
push 0x400
lea edx, [esp + 0x28]
push edx
push 0x40b00c
call fcn.00401000
push 0x400
lea eax, [esp + 0x34]
push eax
add esi, 0x1014
push esi
call fcn.00401000
lea ecx, [esp + 0x3c]
push ecx
push str.LastKey
lea edx, [esp + 0x844]
push edx
push 0x80000001
call fcn.004016e0
push 0x400
lea ecx, [esp + 0x50]
push ecx
xor eax, eax
push str.regedit.exe
mov word [esp + 0x58], ax
call fcn.00401000
add esp, 0x44
push 5
push 0
push 0
lea edx, [esp + 0x20]
push edx
push ebx
call fcn.00401180
add esp, 0x14
mov ecx, dword [esp + 0x1814]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00401f74
add esp, 0x180c
ret
Function at 0x401ad0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [ebx + 8]
mov eax, dword [esi]
push edi
lea edx, [esp + 0x18]
push edx
xor ecx, ecx
push 0x20019
push ecx
lea edi, [esi + 0x1014]
mov word [edi], cx
lea ecx, [esi + 0x14]
push ecx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401b52
lea edx, [esp + 0xc]
push edx
push edi
push eax
push eax
mov eax, dword [esp + 0x28]
add esi, 0x814
push esi
push eax
mov dword [esp + 0x24], 0x7ff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x18]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401b50
mov eax, dword [esp + 0x14]
test eax, eax
je 0x401b50
push ebx
push esi
push 0x4a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x401f74
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b0c0]
jne 0x401f7e
repz ret
jmp fcn.004021eb

Function at 0x404463
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040333e
and dword [ebp - 4], 0
cmp dword [0x40c648], 0
mov ebx, eax
jne 0x404514
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4045c5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4045c5
push eax
call fcn.004032cc
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40c648], eax
call esi
push eax
call fcn.004032cc
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40c64c], eax
call esi
push eax
call fcn.004032cc
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40c650], eax
call esi
push eax
call fcn.004032cc
pop ecx
mov dword [0x40c658], eax
test eax, eax
je 0x404514
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004032cc
pop ecx
mov dword [0x40c654], eax
mov eax, dword [0x40c654]
cmp eax, ebx
je 0x40456c
cmp dword [0x40c658], ebx
je 0x40456c
push eax
call fcn.00403347
push dword [0x40c658]
mov esi, eax
call fcn.00403347
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40456c
test edi, edi
je 0x40456c
call esi
test eax, eax
je 0x404563
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x404563
test byte [ebp - 0xc], 1
jne 0x40456c
or dword [ebp + 0x10], 0x200000
jmp 0x4045a5
mov eax, dword [0x40c64c]
cmp eax, ebx
je 0x4045a5
push eax
call fcn.00403347
pop ecx
test eax, eax
je 0x4045a5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4045a5
mov eax, dword [0x40c650]
cmp eax, ebx
je 0x4045a5
push eax
call fcn.00403347
pop ecx
test eax, eax
je 0x4045a5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40c648]
call fcn.00403347
pop ecx
test eax, eax
je 0x4045c5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4045c7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x548b1a76
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x3d1217b
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4053e8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
push 1
pop ebx
push ebx
call fcn.004046ab
mov esi, 0x104
xor edi, edi
push esi
push edi
push 0x491d94
call fcn.00407360
push esi
push edi
push 0x491c90
call fcn.00407360
push esi
push edi
push 0x491b8c
call fcn.00407360
push esi
push edi
push 0x491a88
call fcn.00407360
push esi
push edi
push 0x491984
call fcn.00407360
add esp, 0x40
push 0x40e0d0
push 0x1ebc
push str.Ltn
call fcn.00403529
push 0x491ea0
call fcn.00402642
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
mov dword [0x491ea8], edi
mov dword [0x491e98], eax
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jne 0x4054a8
cmp dword [ebp - 0x8c], ebx
jne 0x4054a8
mov dword [0x491ea8], ebx
call fcn.004048ef
mov esi, 0x7d000
push esi
call fcn.00407bff
cmp eax, edi
pop ecx
mov dword [0x491980], eax
jne 0x4054c6
xor eax, eax
jmp 0x4054ea
push esi
push edi
push eax
call fcn.00407360
call fcn.004055a8
push ebx
push 0x40fde0
call fcn.00403434
push eax
push edi
call fcn.0040530f
add esp, 0x1c
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4055a8
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
push 0x40fb6f
call fcn.00403434
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop ecx
pop ecx
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test ebp, ebp
mov edi, 0x40fc6f
je 0x40560d
push 1
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
push 4
push edi
mov dword [0x491eb0], eax
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
push 5
push edi
mov dword [0x491eac], eax
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x491eb4], eax
push 3
push 0x40fb6f
call fcn.00403434
pop ecx
pop ecx
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x405637
push 3
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x491eb8], eax
mov edi, 0x40fda4
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x405658
push 1
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebx
call esi
mov dword [0x491ebc], eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x401550
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebx
push edi
push esi
push eax
mov edi, dword [esp + 0x18]
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x40
push 0x3000
push edi
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test eax, eax
je 0x4015cd
mov esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp], 0
mov ecx, esp
push ecx
push edi
push eax
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor edi, edi
test eax, eax
je 0x4015cf
mov ebx, dword [esp + 0x1c]
push 0
push 0
push esi
push 0x401540
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebx], eax
test eax, eax
je 0x4015cf
cmp dword [esp + 0x20], 0
je 0x4015c9
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, esi
jmp 0x4015cf
xor edi, edi
mov eax, edi
add esp, 4
pop esi
pop edi
pop ebx
ret

Function at 0x4015e0
Capabilities:
Check for outputdebugstring error
Print debug messages

Disassembly:
push esi
push eax
push 0x457
call dword [sym.imp.KERNEL32.dll_SetLastError]
push section..rdata
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x457
jne 0x401658
call fcn.00401680
cmp byte [eax + 2], 0
jne 0x401658
test byte [eax + 0x68], 0x70
jne 0x401658
mov dword [esp], 0xffffffff
mov eax, dword [0x423258]
mov ecx, dword [0x42325c]
mov edx, esp
mov esi, dword [0x423254]
push dword [ecx]
push 1
push edx
push dword [eax]
push esi
call fcn.00401550
add esp, 0x14
test eax, eax
sete al
cmp dword [esp], 0xffffffff
sete cl
or cl, al
movzx eax, cl
neg eax
add esp, 4
pop esi
ret
push 0
call sub.msvcrt.dll_exit
nop

Function at 0x401f80
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00402cb0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00402cb0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x401fe0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x42439c]
test esi, esi
jle 0x4020e0
mov eax, dword [0x4243a0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x402010
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40208f
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x402000
mov dword [esp], ebx
call fcn.00402950
mov edi, eax
test eax, eax
je 0x402107
mov eax, dword [0x4243a0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402a60
mov edx, dword [0x4243a0]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4020e7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x402088
sub eax, 4
and eax, 0xfffffffb
jne 0x402096
add dword [0x42439c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4243a0]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x402088
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401f80
xor esi, esi
jmp 0x40201a
mov eax, dword [0x4243a0]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401f80
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401f80
lea esi, [esi]
nop

Function at 0x4025c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4243b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4243b0]
sub esp, 4
test ebx, ebx
je 0x402615
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40260e
test esi, esi
je 0x40260e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4025f0
mov dword [esp], 0x4243b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402470
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x44e980
push 0x80000002
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4024e9
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push ebx
push str.Install
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4024d5
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
cmp dword [ebp - 8], eax
je 0x4024eb
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4024f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftNET_Framework_SetupNDP_v4Client
push 0x80000002
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402555
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push str.Install
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40255b
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 1
jne 0x402555
call fcn.00402580
test al, al
je 0x402555
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x402580
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x452658]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 0x210]
push eax
xor edi, edi
push 0x20019
push edi
push str.SoftwareMicrosoftNET_Framework_SetupNDP_v4Client
push 0x80000002
mov dword [ebp - 0x21c], edi
xor ebx, ebx
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x220], 0x104
mov dword [ebp - 0x224], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4026f0
lea ecx, [ebp - 0x220]
push ecx
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x224]
push eax
push edi
push str.Version
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40262b
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413810
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x20c]
push 0x44e97c
push edx
call fcn.004142de
add esp, 0xc
cmp eax, edi
je 0x4026f0
push esi
or esi, 0xffffffff
nop
inc esi
cmp esi, 3
ja case.default.0x402666
jmp dword [esi*4 + 0x402704]
push eax
call fcn.004142d3
mov edi, eax
jmp 0x40269b
push eax
call fcn.004142d3
mov ebx, eax
jmp 0x40269b
push eax
call fcn.004142d3
mov dword [ebp - 0x218], eax
jmp 0x40269b
push eax
call fcn.004142d3
mov dword [ebp - 0x214], eax
add esp, 4
lea eax, [ebp - 0x21c]
push eax
push 0x44e9ec
push 0
call fcn.004142de
add esp, 0xc
test eax, eax
jne 0x402660
pop esi
cmp edi, 4
jle 0x4026d0
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413810
mov esp, ebp
pop ebp
ret
jne 0x4026f0
test ebx, ebx
jg 0x4026be
jne 0x4026f0
mov eax, dword [ebp - 0x218]
cmp eax, 0x766f
jg 0x4026be
jne 0x4026f0
cmp dword [ebp - 0x214], 0
jge 0x4026be
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00413810
mov esp, ebp
pop ebp
ret