joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401bca
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f010]
jne 0x401bd4
repz ret
jmp fcn.00401ec3

Function at 0x408b6c
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.00403822
and dword [ebp - 4], 0
cmp dword [0x4109ec], 0
mov ebx, eax
jne 0x408c1d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408cce
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408cce
push eax
call fcn.004037b0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4109ec], eax
call esi
push eax
call fcn.004037b0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4109f0], eax
call esi
push eax
call fcn.004037b0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4109f4], eax
call esi
push eax
call fcn.004037b0
pop ecx
mov dword [0x4109fc], eax
test eax, eax
je 0x408c1d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004037b0
pop ecx
mov dword [0x4109f8], eax
mov eax, dword [0x4109f8]
cmp eax, ebx
je 0x408c75
cmp dword [0x4109fc], ebx
je 0x408c75
push eax
call fcn.0040382b
push dword [0x4109fc]
mov esi, eax
call fcn.0040382b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408c75
test edi, edi
je 0x408c75
call esi
test eax, eax
je 0x408c6c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408c6c
test byte [ebp - 0xc], 1
jne 0x408c75
or dword [ebp + 0x10], 0x200000
jmp 0x408cae
mov eax, dword [0x4109f0]
cmp eax, ebx
je 0x408cae
push eax
call fcn.0040382b
pop ecx
test eax, eax
je 0x408cae
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408cae
mov eax, dword [0x4109f4]
cmp eax, ebx
je 0x408cae
push eax
call fcn.0040382b
pop ecx
test eax, eax
je 0x408cae
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4109ec]
call fcn.0040382b
pop ecx
test eax, eax
je 0x408cce
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408cd0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001070
Capabilities:
Extract resource via kernel32 functions
Terminate process

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
cmp eax, 1
push edi
jne 0x100011aa
mov esi, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 0xa
push 0x89
push esi
mov dword [0x1000ca6c], esi
call ebp
test eax, eax
mov dword [0x1000ca78], eax
jne 0x100010ab
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, 0x80
jae 0x100010c5
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x1000ca78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [0x1000ca7c], eax
jne 0x100010e2
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call ebx
push 0xa
push 0x8a
push esi
mov dword [0x1000ca80], eax
mov dword [0x1000ca74], edi
call ebp
test eax, eax
mov dword [0x1000ca78], eax
jne 0x10001110
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, 0x80
jae 0x1000112a
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [0x1000ca78]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [0x1000ca7c], eax
jne 0x10001148
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push eax
call ebx
push str.kernel32.dll
mov dword [0x1000ca84], eax
mov dword [0x1000ca70], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.WriteFile
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov dword [0x1000ca68], eax
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
call fcn.10001440
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.10001cc0
push section..text
push 0x1000ca68
call fcn.10001d80
call fcn.100016c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
cmp eax, 2
je 0x100011dd
cmp eax, 3
je 0x100011dd
test eax, eax
jne 0x100011dd
call fcn.10001440
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.10001cc0
push section..text
push 0x1000ca68
call fcn.100027d0
call fcn.100016c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
Function at 0x10001340
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10008108
push 0x10003450
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x100013a6
mov byte [ebp - 0x3d], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3d]
jmp 0x1000142f
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx], 0x4550
je 0x100013cd
mov byte [ebp - 0x3e], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3e]
jmp 0x1000142f
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
add eax, dword [edx + 0xd8]
cmp dword [ebp + 0xc], eax
jb 0x10001408
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
add edx, dword [ecx + 0xd8]
mov eax, dword [ebp - 0x3c]
add edx, dword [eax + 0xdc]
cmp dword [ebp + 0xc], edx
jae 0x10001408
mov byte [ebp - 0x3f], 1
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3f]
jmp 0x1000142f
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x40]
jmp 0x1000142f
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100014d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1000ca88]
mov dword [ebp - 4], eax
jmp 0x100014e9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10001506
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x100014e0
mov esp, ebp
pop ebp
ret
Function at 0x10001510
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1000ca98], eax
je 0x1000152e
mov eax, 0x10dd
jmp 0x10001610
mov eax, dword [0x1000caa8]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100015ad
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
xor eax, eax
mov al, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x1000158b
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x10], 0
je 0x1000158b
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
push eax
call fcn.10001680
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.10003528
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x10001536
mov dword [0x1000caa8], 0
call fcn.10001620
mov ecx, dword [0x1000caa4]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x100015fa
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.10003528
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
jmp 0x100015c5
mov dword [0x1000caa4], 0
mov dword [0x1000ca98], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10001b80
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x10001b95
xor eax, eax
jmp 0x10001c0a
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, 0x10000
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
jmp 0x10001bc2
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x38d
jae 0x10001c05
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x48
mov eax, dword [ebp - 0x10]
cmp dword [eax + edx + 0x40], 0
je 0x10001c03
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x10001bff
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x10001c03
xor eax, eax
jmp 0x10001c0a
jmp 0x10001bb9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10001cc0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1000ca9c], 0
je 0x10001cd9
mov eax, dword [0x1000ca9c]
jmp 0x10001d79
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x10001ceb
xor eax, eax
jmp 0x10001d79
push 8
call fcn.100038d5
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10001d41
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x10001d2a
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10003528
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1000ca9c], eax
mov dword [0x1000caa0], 0
mov eax, dword [ebp - 8]
jmp 0x10001d79
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10001d5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x10001d0b
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1000caa4]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1000caa4], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x100025c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10002690
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1000267c
cmp dword [ebp - 4], 0x50000000
jb 0x100025fc
cmp dword [ebp - 4], 0x80000000
ja 0x100025fc
mov dword [ebp - 4], 0x80010000
jmp 0x100025d5
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.10003540
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10002622
jmp 0x1000267c
cmp dword [ebp - 0x10], 0x10000
jne 0x10002665
cmp dword [ebp - 0x14], 0x10000
jb 0x10002665
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x10002658
mov eax, dword [ebp - 0x24]
jmp 0x1000267e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10002677
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.10002690
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100025d5
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100026d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.100027a0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10002794
cmp dword [ebp - 4], 0x50000000
jb 0x10002711
cmp dword [ebp - 4], 0x80000000
ja 0x10002711
mov dword [ebp - 4], 0x4fff0000
jmp 0x100026ea
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.10003540
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10002737
jmp 0x10002794
cmp dword [ebp - 0x10], 0x10000
jne 0x1000277a
cmp dword [ebp - 0x14], 0x10000
jb 0x1000277a
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x1000276d
mov eax, dword [ebp - 0x24]
jmp 0x10002796
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000278f
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.100027a0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100026ea
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100027d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1000ca98], eax
je 0x100027f5
mov eax, 0x10dd
jmp 0x1000298a
cmp dword [0x1000ca9c], 0
je 0x10002808
mov eax, dword [0x1000ca9c]
jmp 0x1000298a
cmp dword [ebp + 8], 0
jne 0x10002818
mov eax, 6
jmp 0x1000298a
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10002841
mov dword [ebp - 0x14], 6
mov ecx, dword [ebp - 0x14]
mov dword [0x1000ca9c], ecx
mov edx, dword [ebp + 8]
mov dword [0x1000caa0], edx
mov eax, dword [ebp - 0x14]
jmp 0x1000298a
push 0x18
call fcn.100038d5
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1000289a
mov dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x14]
mov dword [0x1000ca9c], ecx
cmp dword [ebp - 0x18], 0
je 0x10002889
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.10003528
add esp, 4
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 8]
mov dword [0x1000caa0], ecx
mov eax, dword [ebp - 0x14]
jmp 0x1000298a
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10001200
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10001200
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
xor eax, eax
mov al, byte [edx + 0x36]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 8], 0
je 0x100028db
cmp dword [ebp - 8], 0x1e
jbe 0x100028f5
mov dword [ebp - 0x14], 9
cmp dword [0x1000ca90], 0
je 0x100028f0
jmp 0x1000286a
jmp 0x10002861
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1000291a
mov dword [ebp - 0x14], 9
cmp dword [0x1000ca90], 0
je 0x10002915
jmp 0x1000286a
jmp 0x10002861
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push 0x40
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10002947
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
jmp 0x10002861
mov edx, dword [ebp - 0x18]
mov dword [edx + 4], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [0x1000caa8]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
mov dword [0x1000caa8], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x404cf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 4], 0
je 0x404d6b
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0x104
lea eax, [ebp - 0xc]
push eax
push 0x104
mov ecx, dword [ebp + 0x14]
call fcn.004034c0
push eax
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x14]
call fcn.00403e80
mov eax, 1
jmp 0x404d6d
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4050c0
Capabilities:
Get installed programs
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44da62
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x38]
call fcn.00405620
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 4], 0
push 0x451e9c
mov edx, dword [ebp - 0x54]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.00402d00
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.0041c700
lea ecx, [ebp - 0x10]
call fcn.00403460
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x14]
push ecx
push 8
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 0x14], 0
je 0x405260
mov dword [ebp - 0x20], 0
mov edx, 1
test edx, edx
je 0x405256
lea ecx, [ebp - 0x2c]
call fcn.00403460
mov byte [ebp - 4], 4
mov dword [ebp - 0x34], 0x104
mov dword [ebp - 0x30], 0x104
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x30]
push ecx
push 0x104
lea ecx, [ebp - 0x2c]
call fcn.004034c0
push eax
push 0
lea edx, [ebp - 0x34]
push edx
push 0x104
lea ecx, [ebp - 0x10]
call fcn.004034c0
push eax
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4051d2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0041c700
jmp 0x405256
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00403e80
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403e80
lea ecx, [ebp - 0x18]
call fcn.004034e0
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x10]
call fcn.004049e0
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
call fcn.00410ff0
push eax
lea ecx, [ebp - 0x18]
call fcn.00405400
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x39], al
lea ecx, [ebp - 0x40]
call fcn.0041c700
movzx ecx, byte [ebp - 0x39]
test ecx, ecx
je 0x405245
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0041c700
jmp 0x405256
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0041c700
jmp 0x40515e
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 0
je 0x40529e
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.00410ff0
push eax
mov ecx, dword [ebp - 0x4c]
call fcn.00404e40
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.0041c700
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041c700
mov eax, dword [ebp - 0x44]
jmp 0x4052c3
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.0041c700
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041c700
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4052e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44da74
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x10]
call fcn.00403460
mov dword [ebp - 4], 0
push str.SoftwareMicrosoftInternet_ExplorerMain
lea eax, [ebp - 0x10]
push eax
call fcn.00403de0
add esp, 8
lea ecx, [ebp - 0x14]
push ecx
push 2
push 0
lea ecx, [ebp - 0x10]
call fcn.00410ff0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 0x14], 0
je 0x405393
mov edx, dword [ebp + 8]
push edx
call fcn.0042fcc0
add esp, 4
add eax, 1
push eax
mov eax, dword [ebp + 8]
push eax
push 1
push 0
push str.Start_Page
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041c700
mov eax, dword [ebp - 0x18]
jmp 0x4053ac
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041c700
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x406210
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
call fcn.0040a250
mov dword [ebp - 0x10], eax
push str.Image
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x406241
xor eax, eax
jmp 0x4062a5
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00407050
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp + 0xc]
call fcn.004070b0
push eax
call fcn.00430340
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
call fcn.00406a50
mov eax, 1
mov esp, ebp
pop ebp
ret 8