joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478ad0
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [esp + 8], 0
je 0x478ae0
mov eax, esi
call fcn.004541a0
jmp 0x478aed
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 4]
test eax, eax
js 0x478b48
je 0x478b48
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call ebp
push 1
push 0x8000012f
mov edi, eax
call fcn.00401420
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call ebx
test eax, eax
je 0x478b45
add edi, dword [esp + 0x10]
call ebp
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x478b45
push 1
push 0x8000012f
call fcn.00401420
add esp, 8
push esi
call ebx
test eax, eax
jne 0x478b24
pop edi
pop ebp
pop ebx
mov eax, esi
ret
Function at 0x478d40
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e60
call fcn.00494110
mov eax, dword [esp + 0x8e68]
push ebx
push ebp
mov ebp, dword [esp + 0x8e6c]
push esi
mov esi, ecx
mov cl, byte [edx]
xor ebx, ebx
cmp cl, 0x41
je 0x478d6b
cmp cl, 0x61
jne 0x478dc9
cmp byte [edx + 1], bl
jne 0x478dc9
cmp byte [edi], bl
jne 0x478dc9
cmp byte [eax], bl
jne 0x478dc9
cmp byte [esi], bl
jne 0x478dc9
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
cmp esi, ebx
je 0x478daa
cmp byte [ebp + 0xca], bl
jne 0x478daa
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x478da8
push esi
call fcn.00479930
add esp, 4
test al, al
je 0x478daa
xor esi, esi
cmp byte [esp + 0x8e7c], bl
je 0x478dbd
cmp esi, ebx
je 0x478dbd
mov dword [ebp + 0xa4], esi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
cmp cl, bl
jne 0x478dea
cmp byte [edi], bl
jne 0x478dea
cmp byte [eax], bl
jne 0x478dea
cmp byte [esi], bl
jne 0x478dea
mov eax, ebp
call fcn.00478f40
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
push esi
push edi
push edx
push ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x828], 0x49b8bd
mov byte [esp + 0xc45], bl
mov dword [esp + 0xc48], ebx
mov dword [esp + 0xc4c], ebx
mov dword [esp + 0xc50], ebx
mov dword [esp + 0xc54], ebx
mov dword [esp + 0xc58], ebx
mov dword [esp + 0xc5c], ebx
mov dword [esp + 0xc68], ebx
mov dword [esp + 0xc6c], ebx
call fcn.00479a90
test eax, eax
je 0x478ef9
test byte [esp + 0xc], 2
mov al, byte [esp + 0x8e78]
mov ecx, dword [esp + 0x8e80]
mov edx, dword [esp + 0x8e84]
mov byte [esp + 0xc35], al
mov dword [esp + 0xc44], ecx
mov dword [esp + 0xc48], edx
je 0x478f05
mov eax, dword [esp + 0x828]
cmp eax, 0xffff
je 0x478ed1
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x478ef9
cmp byte [ebp + 0xca], bl
jne 0x478eca
mov esi, dword [esp + 0x828]
call fcn.004799a0
cmp al, bl
jne 0x478eca
mov eax, dword [esp + 0x828]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x40000000
je 0x478ef9
mov eax, dword [esp + 0x828]
cmp dword [esp + 0xc5c], eax
je 0x478eea
lea esi, [esp + 0xc]
mov dword [esp + 0xc5c], eax
call fcn.00479ed0
push ebx
lea ecx, [esp + 0x10]
push ecx
call fcn.00479f90
test eax, eax
jne 0x478f15
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
lea edx, [esp + 0xc]
push edx
push 0x478fc0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0xc3c]
cmp byte [esp + 0x8e7c], bl
je 0x478f2f
cmp eax, ebx
je 0x478f2f
mov dword [ebp + 0xa4], eax
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
Function at 0x479140
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x8018
call fcn.00494110
push ebx
push ebp
mov ebp, dword [esp + 0x8028]
push esi
push edi
mov edi, dword [esp + 0x802c]
mov esi, ecx
test edi, edi
je 0x479169
mov ecx, edi
call fcn.00414da0
cmp dword [esp + 0x8038], 0
jne 0x47917e
mov dword [esp + 0x8038], 0x1f4
cmp dword [esp + 0x803c], 1
jge 0x479193
mov dword [esp + 0x803c], 0x32
cmp ebp, 1
jge 0x47919d
mov ebp, 1
test esi, esi
je 0x47936a
mov ebx, dword [sym.imp.USER32.dll_SendMessageTimeoutA]
lea eax, [esp + 0x20]
push eax
push 0x7d0
push 2
push 0
push 0
push 0x406
push esi
call ebx
test eax, eax
je 0x47936a
cmp ebp, dword [esp + 0x20]
jg 0x47936a
push 0x8000
xor eax, eax
mov ecx, esi
lea edi, [esp + 0x1c]
call fcn.00475e70
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
je 0x479363
dec ebp
mov byte [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x24], eax
jmp 0x479210
lea ecx, [esp + 0x14]
push ecx
push 0x7d0
push 2
push 0
push ebp
push 0x403
push esi
call ebx
test eax, eax
je 0x479287
mov edx, 0x7fff
cmp word [esp + 0x14], dx
ja 0x4792de
lea eax, [esp + 0x14]
push eax
push 0x7d0
push 2
push edi
push ebp
push 0x402
push esi
call ebx
test eax, eax
je 0x479287
movzx ecx, word [esp + 0x14]
mov eax, dword [esp + 0x18]
push 0
inc ecx
push ecx
lea edx, [esp + 0x30]
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4792d9
mov edx, dword [esp + 0x8034]
lea eax, [esp + 0x28]
call fcn.00478670
test al, al
jne 0x479304
cmp dword [esp + 0x802c], 0
jne 0x4792e8
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x479337
mov edi, dword [esp + 0x8038]
test edi, edi
js 0x4792be
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x24]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x47931c
mov edx, dword [esp + 0x803c]
push 1
push edx
call fcn.00401420
mov edi, dword [esp + 0x24]
add esp, 8
jmp 0x479210
mov byte [esp + 0x28], 0
cmp dword [esp + 0x802c], 0
je 0x479337
mov eax, dword [esp + 0x802c]
push 1
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x34]
push edx
push eax
call fcn.00477990
mov esi, eax
jmp 0x47933c
mov eax, dword [0x4aea5c]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d8
push eax
call fcn.00477990
jmp 0x4792de
mov ecx, dword [0x4aea5c]
push 1
push 0
push 0xffffffffffffffff
push 0x49cf30
push ecx
call fcn.00477990
mov edi, dword [esp + 0x1c]
mov esi, 1
push 0x8000
push 0
push edi
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8018
ret
mov edi, dword [esp + 0x802c]
mov eax, 0x49cf30
test edi, edi
jne 0x479378
mov eax, 0x49d1f0
mov ecx, dword [0x4aa978]
test byte [ecx + 0xe0], 1
jne 0x4793a5
mov edx, dword [0x4aea5c]
push 1
push 0
push 0xffffffffffffffff
push eax
push edx
call fcn.00477990
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8018
ret
mov ecx, dword [0x4af584]
push 0x49b8bd
push 0
push eax
call fcn.0042f770
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8018
ret
Function at 0x479ed0
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov ecx, dword [esi + 0xc50]
test ecx, ecx
je 0x479f87
mov eax, dword [esi]
test eax, eax
je 0x479f87
push edi
test al, 1
jne 0x479ef9
mov eax, dword [esi + 0x80c]
cmp byte [eax], 0
je 0x479f12
push 0x7fff
lea edi, [esi + 0xc58]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x479f12
mov byte [edi], al
test byte [esi], 4
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x479f2d
mov edx, dword [esi + 0xc50]
lea ecx, [esi + 0xc54]
push ecx
push edx
call edi
test byte [esi], 0x20
je 0x479f68
mov ecx, dword [esi + 0xc50]
lea eax, [esp + 4]
push eax
push ecx
call edi
test eax, eax
je 0x479f68
movzx edx, byte [esi + 0xc28]
mov ecx, dword [esp + 4]
push edx
lea eax, [esi + 0x8d58]
call fcn.004502b0
add esp, 4
test eax, eax
jne 0x479f68
mov byte [esi + 0x8d58], al
test byte [esi], 8
pop edi
je 0x479f87
mov ecx, dword [esi + 0xc50]
push 0x101
lea eax, [esi + 0x8c57]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClassNameA]
pop ecx
ret

Function at 0x47a6d0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e5c
call fcn.00494110
mov eax, dword [esp + 0x8e60]
mov eax, dword [eax + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x47a77d
mov dword [esp + 0xc44], eax
lea eax, [esp + 4]
push eax
push 0x47ae50
mov dword [esp + 0xc], ebx
mov dword [esp + 0x818], 0x49b8bd
mov byte [esp + 0xc35], bl
mov dword [esp + 0xc38], ebx
mov dword [esp + 0xc3c], ebx
mov dword [esp + 0xc40], ebx
mov dword [esp + 0xc44], ebx
mov dword [esp + 0xc48], ebx
mov dword [esp + 0xc58], ebx
mov dword [esp + 0xc5c], ebx
mov byte [esp + 0xc50], cl
mov dword [esp + 0xc54], edx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0xc34], ebx
je 0x47a77d
mov ecx, dword [0x4aa978]
mov eax, dword [ecx + 0x54]
cmp eax, 0xffffffff
jle 0x47a77d
push 1
push eax
call fcn.00401420
add esp, 8
mov eax, 1
pop ebx
add esp, 0x8e5c
ret 4
Function at 0x47a790
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
cmp dword [edi + 8], 0
jne 0x47a7ac
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x4aa978]
push eax
push esi
mov ecx, edi
call fcn.0047ac50
cmp byte [edi], 0
mov dword [esp + 0x10], eax
je 0x47a7e3
test eax, eax
jne 0x47a7e7
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edi
call fcn.0047a8a0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
test eax, eax
jne 0x47a866
test esi, esi
je 0x47a866
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
push 1
push 0x8000012f
mov ebx, eax
call fcn.00401420
mov edi, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call edi
test eax, eax
je 0x47a845
mov edi, edi
call ebp
lea ecx, [ebx + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x47a845
push 1
push 0x8000012f
call fcn.00401420
add esp, 8
push esi
call edi
test eax, eax
jne 0x47a820
mov edx, dword [0x4aa978]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x47a85e
push 1
push eax
call fcn.00401420
add esp, 8
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x47a880
mov ecx, dword [esp + 0x1c]
push 0
push ecx
push edi
call fcn.0047a8a0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edx, dword [esp + 0x1c]
push edx
mov ecx, edi
call fcn.0047aa20
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x47aa20
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e68
call fcn.00494110
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 8], ebx
je 0x47aba0
xor cl, cl
mov eax, edi
call fcn.0047abc0
test eax, eax
jne 0x47aa55
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e68
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
mov eax, dword [0x4aa978]
push eax
push ebp
mov ecx, edi
call fcn.0047ac50
test eax, eax
je 0x47aa78
xor eax, eax
mov dword [0x4af1d4], eax
jmp 0x47aa7d
mov eax, dword [0x4af1d4]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x824], 0x49b8bd
mov dword [esp + 0xc44], ebx
mov dword [esp + 0xc48], ebx
mov dword [esp + 0xc4c], ebx
mov dword [esp + 0xc64], ebx
mov dword [esp + 0xc68], ebx
cmp byte [esp + 0x8e7c], bl
je 0x47aac3
mov byte [esp + 0xc41], bl
cmp eax, ebx
je 0x47aacb
mov byte [esp + 0xc41], 1
mov ecx, dword [0x4af1d0]
mov edx, dword [edi + 8]
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
mov dword [esp + 0xc54], eax
lea eax, [esp + 0x18]
push eax
push 0x47ad20
mov dword [esp + 0xc58], ecx
mov dword [esp + 0xc60], edx
call esi
mov eax, dword [esp + 0xc48]
cmp eax, ebx
je 0x47ab78
lea ecx, [esp + 0x10]
push ecx
push 0x479800
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
call esi
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x47ab35
mov edx, dword [esp + 0xc48]
call fcn.0047a3e0
mov dword [esp + 0xc48], esi
mov eax, dword [esp + 0xc48]
call fcn.00478820
mov edx, dword [esp + 0xc48]
call fcn.0047a3e0
mov edx, dword [0x4aa978]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x47aba0
push 1
push eax
call fcn.00401420
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e68
ret 4
mov eax, dword [0x4af1d4]
cmp eax, ebx
je 0x47aba0
cmp eax, 1
setg al
mov dword [0x4af1d4], ebx
cmp al, bl
je 0x47aba0
mov edx, ebp
call fcn.0047a3e0
push ebx
mov ecx, edi
call fcn.0047aa20
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x8e68
ret 4
Function at 0x48ed94
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a9df0]
jne 0x48ed9e
repz ret
jmp fcn.00493357

Function at 0x491411
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a9df0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0048bad2
and dword [ebp - 0x14], 0
cmp dword [0x4aca8c], 0
mov dword [ebp - 0x18], eax
jne 0x4914c4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x49156c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x49156c
mov esi, dword [fcn.00487850]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4aca8c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4aca90], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4aca94], eax
call edi
push eax
call esi
mov dword [0x4aca9c], eax
test eax, eax
je 0x4914c4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4aca98], eax
mov eax, dword [0x4aca98]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00487854]
cmp eax, ecx
je 0x49151d
cmp dword [0x4aca9c], ecx
je 0x49151d
push eax
call esi
push dword [0x4aca9c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x49151d
test ebx, ebx
je 0x49151d
call edi
test eax, eax
je 0x491514
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x491514
test byte [ebp - 8], 1
jne 0x49151d
or dword [ebp + 0x10], 0x200000
jmp 0x491550
mov eax, dword [0x4aca90]
cmp eax, dword [ebp - 0x18]
je 0x491550
push eax
call esi
test eax, eax
je 0x491550
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x491550
mov eax, dword [0x4aca94]
cmp eax, dword [ebp - 0x18]
je 0x491550
push eax
call esi
test eax, eax
je 0x491550
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4aca8c]
call esi
test eax, eax
je 0x49156c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x49156e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048ed94
leave
ret
Function at 0x401b58
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x401b72
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 0xc

Function at 0x401b9b
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x401ba6
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x402512
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.00401b23
cmp eax, esi
jne 0x40258a
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x402553
lea eax, [ebp - 0x110]
push eax
call fcn.00402512
cmp eax, esi
jne 0x402589
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], pe_nt_image_headers32
call edi
test eax, eax
lea ecx, [ebp - 4]
je 0x402543
call fcn.00401abe
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 4]
mov esi, eax
call fcn.00401abe
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x402749
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0x34], eax
jne 0x402765
xor al, al
jmp 0x40277f
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x40273b
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ecx
ret
Function at 0x404f9a
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
xor ebx, ebx
push ebx
mov dword [ebp + 0x10], eax
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 8], ebx
call fcn.00402156
test al, al
je 0x404fc9
call fcn.004058e5
mov dword [ebp - 8], eax
push ebx
push ebx
push ebx
push 3
push 1
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp dword [ebp - 8], ebx
je 0x404fec
lea eax, [ebp - 8]
push eax
call fcn.0040577b
pop ecx
push 0x40b40c
push dword [ebp + 8]
mov ecx, 0x40f3c8
push 0x40e078
call fcn.00401f94
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x40f3f8], eax
mov esi, 0x40b888
lea edi, [ebp - 4]
lea eax, [ebp - 4]
movsw word es:[edi], word [esi]
push eax
push dword [ebp + 0x10]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 0xc], ebx
call fcn.00402115
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x4050ad
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, str.shutdown
push str.unregserver
call esi
push eax
push str.unregserver
push edi
call fcn.004064e0
add esp, 0xc
test eax, eax
je 0x4050cc
push str.regserver
call esi
push eax
push str.regserver
push edi
call fcn.004064e0
add esp, 0xc
test eax, eax
je 0x4050d7
push str.startup
call esi
push eax
push str.startup
push edi
call fcn.004064e0
add esp, 0xc
test eax, eax
je 0x4050b2
push ebx
call esi
push eax
push ebx
push edi
call fcn.004064e0
add esp, 0xc
test eax, eax
je 0x4050b2
lea eax, [ebp - 4]
push eax
push edi
call fcn.00402115
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x40503b
call fcn.00402783
mov ecx, 0x40f3c8
call fcn.004025e8
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x10
push edi
push dword [ebp + 8]
call fcn.00404f68
jmp 0x4050e0
push edi
push dword [ebp + 8]
call fcn.00404f36
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
jmp 0x4050b2

Function at 0x4050e7
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
je 0x405169
push ebx
push esi
call fcn.004064db
mov ebx, eax
cmp ebx, edi
pop ecx
je 0x405168
push ebx
push esi
push edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x405161
push 0x12
pop ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov esi, str.StringFileInfo040904b0ProductName
lea edi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
movsw word es:[edi], word [esi]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x405161
cmp dword [ebp - 4], 0
je 0x405161
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.00406589
pop ecx
pop ecx
push ebx
call fcn.00405f31
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4061b1
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004062a0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40624c
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40f58c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40624c
cmp eax, 1
je 0x40626d
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40624c
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x406219
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x406248
xor eax, eax
inc eax
jmp 0x40628c
cmp edi, eax
jae 0x406250
xor eax, eax
jmp 0x40628c
cmp eax, esi
jae 0x406257
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40f58c]
jmp 0x406270
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4076eb
Capabilities:
Terminate process

Disassembly:
push 8
push 0x40baa0
call fcn.00405e74
push 8
call fcn.00406ad3
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x40f5cc], esi
jne 0x40771f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x40f5c8], esi
mov al, byte [ebp + 0x10]
mov byte [0x40f5c4], al
cmp dword [ebp + 0xc], edi
jne 0x407769
cmp dword [0x40fc88], edi
je 0x407759
mov eax, dword [0x40fc84]
sub eax, 4
mov dword [0x40fc84], eax
cmp eax, dword [0x40fc88]
jb 0x407759
mov eax, dword [eax]
cmp eax, edi
je 0x40773a
call eax
jmp 0x40773a
push 0x40e02c
mov eax, 0x40e028
call fcn.00407669
pop ecx
push 0x40e034
mov eax, 0x40e030
call fcn.00407669
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40779a
cmp dword [ebp + 0x10], edi
jne 0x4077a8
mov dword [0x40f5cc], esi
push dword [ebp + 8]
call fcn.00407627
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4077a7
push 8
call fcn.00406a1e
pop ecx
ret
call fcn.00405eaf
ret