joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4065ba
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004023c3
xor ebx, ebx
cmp dword [0x410a94], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x406690
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x406770
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x406770
push eax
call fcn.00402355
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x410a94], eax
call esi
push eax
call fcn.00402355
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x410a98], eax
call esi
push eax
call fcn.00402355
mov dword [0x410a9c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00401791
test eax, eax
pop ecx
pop ecx
je 0x40665e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040214a
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x406690
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00402355
cmp eax, ebx
pop ecx
mov dword [0x410aa4], eax
je 0x406690
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402355
pop ecx
mov dword [0x410aa0], eax
mov eax, dword [0x410aa0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x406715
cmp dword [0x410aa4], ecx
je 0x406715
push eax
call fcn.004023cc
push dword [0x410aa4]
mov esi, eax
call fcn.004023cc
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x406715
cmp edi, ebx
je 0x406715
call esi
cmp eax, ebx
je 0x4066e2
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4066e2
test byte [ebp - 0x18], 1
jne 0x406715
lea eax, [ebp - 0x10]
push eax
call fcn.004017c8
test eax, eax
pop ecx
je 0x4066fd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040214a
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40670c
or dword [ebp + 0x10], 0x200000
jmp 0x406750
or dword [ebp + 0x10], 0x40000
jmp 0x406750
mov eax, dword [0x410a98]
cmp eax, dword [ebp - 8]
je 0x406750
push eax
call fcn.004023cc
cmp eax, ebx
pop ecx
je 0x406750
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x406750
mov eax, dword [0x410a9c]
cmp eax, dword [ebp - 8]
je 0x406750
push eax
call fcn.004023cc
cmp eax, ebx
pop ecx
je 0x406750
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x410a94]
call fcn.004023cc
cmp eax, ebx
pop ecx
je 0x406770
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406772
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40121c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
cmp edi, ebx
jne 0x401235
push 0x80004005
call fcn.0040109c
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, ebx
je 0x4012a4
mov ecx, dword [edi]
cmp ecx, ebx
jbe 0x40129f
cmp dword [ebp + 0x10], ebx
jbe 0x401295
cmp dword [ebp + 0x10], 2
jbe 0x401287
cmp dword [ebp + 0x10], 7
jne 0x401295
test cl, 1
jne 0x401295
shr ecx, 1
cmp ecx, 1
jb 0x401295
cmp word [esi + ecx*2 - 2], bx
jne 0x401295
cmp ecx, 1
jbe 0x4012a4
cmp word [esi + ecx*2 - 4], bx
jmp 0x401293
test cl, 1
jne 0x401295
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x4012a4
xor eax, eax
push 0xd
mov word [esi], ax
pop eax
jmp 0x4012a4
xor ecx, ecx
mov word [esi], cx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x402333
Capabilities:
Access the windows event log

Disassembly:
push ebp
lea ebp, [esp - 0x1fa0]
mov eax, 0x2020
call fcn.0041db20
mov eax, dword [0x45c270]
xor eax, ebp
mov dword [ebp + 0x1f9c], eax
push esi
push edi
mov edi, dword [ebp + 0x1fa8]
lea eax, [ebp + 0x1fbc]
push eax
push dword [ebp + 0x1fb8]
lea eax, [ebp - 0x64]
push eax
call fcn.0041c960
lea eax, [ebp - 0x64]
xor esi, esi
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x68], esi
call fcn.00401710
add esp, 0x10
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov edi, eax
cmp edi, esi
je 0x4023cf
push esi
lea eax, [ebp - 0x6c]
push eax
push esi
push 1
push dword [ebp - 0x68]
push dword [ebp + 0x1fb4]
push dword [ebp + 0x1fb0]
push dword [ebp + 0x1fac]
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
cmp dword [ebp - 0x68], esi
pop edi
pop esi
je 0x4023df
push dword [ebp - 0x68]
call fcn.0041d030
pop ecx
lea ecx, [ebp - 0x80]
call fcn.004016e1
mov ecx, dword [ebp + 0x1f9c]
xor ecx, ebp
call fcn.0041d759
add ebp, 0x1fa0
leave
ret

Function at 0x40eb5c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
shl eax, 2
leave
ret
Function at 0x40ef08
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
jne 0x40ef1e
push 0x80004005
call fcn.0040109c
cmp byte [ebp + 0x10], 0
mov eax, dword [ebp + 0x14]
je 0x40ef31
cmp eax, 0xffffffff
jne 0x40ef40
push 0x57
pop eax
jmp 0x40ef61
cmp eax, 0xffffffff
jne 0x40ef40
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
push eax
push dword [ebp + 8]
xor eax, eax
cmp byte [ebp + 0x10], al
sete al
dec eax
and eax, 6
inc eax
push eax
push 0
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
pop ebp
ret 0x10

Function at 0x40ef66
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_RegSetValueExW]
ret 8

Function at 0x40ef80
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x40ef91
push 0xd
pop eax
jmp 0x40efbe
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40ef94
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

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

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x45c270]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
push edi
or ecx, 0x2001f
push ecx
push eax
push dword [esi]
xor edi, edi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
call fcn.004011e7
mov ebx, eax
cmp ebx, edi
je 0x40ffd5
lea ecx, [ebp - 0x70]
call fcn.0040117e
mov eax, ebx
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d759
add ebp, 0x19c
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40ffed
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040ff65
cmp eax, edi
jne 0x410020
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
push edi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call ebx
test eax, eax
je 0x40ffdd
lea ecx, [ebp - 0x70]
call fcn.0040117e
push dword [ebp - 0x78]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.0040117e
mov eax, esi
jmp 0x40ffbb
Function at 0x4103c4
Capabilities:
Delete registry key
Persist via windows service
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1dc]
sub esp, 0x25c
mov eax, dword [0x45c270]
xor eax, ebp
mov dword [ebp + 0x1d8], eax
mov eax, dword [ebp + 0x1e4]
push ebx
push esi
push eax
lea eax, [ebp - 0x74]
xor ebx, ebx
push str.SYSTEMCurrentControlSetServicesEventLogApplication_s
push eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
call fcn.0041d872
add esp, 0xc
lea ecx, [ebp - 0x7c]
cmp dword [ebp + 0x1e8], ebx
je 0x410470
push edi
push ebx
push ebx
push 0x2001f
push ebx
push ebx
lea eax, [ebp - 0x74]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00401199
push 0x11
pop ecx
push 0x8a
lea eax, [ebp + 0x194]
push eax
push 2
push ebx
push str.EventMessageFile
push dword [ebp - 0x7c]
mov esi, str._SYSTEMROOT_SYSTEM32VWEVLOG.DLL
lea edi, [ebp + 0x194]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call esi
push 4
lea eax, [ebp - 0x80]
push eax
push 4
push ebx
push str.TypesSupported
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x1f
call esi
pop edi
jmp 0x41048d
push 0x2001f
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004011e7
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x7c]
mov esi, eax
call fcn.0040117e
mov ecx, dword [ebp + 0x1d8]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d759
add ebp, 0x1dc
leave
ret
Function at 0x4104b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x5f0
lea ebp, [esp - 4]
mov eax, dword [0x45c270]
xor eax, ebp
mov dword [ebp + 0x5f0], eax
push 0x6c
mov eax, 0x44425d
call fcn.0041d79b
mov eax, dword [ebp + 0x5fc]
and dword [ebp - 0x18], 0
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantClear]
mov esi, dword [ebp + 0x600]
mov edi, dword [ebp + 0x604]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x74]
push eax
call ebx
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov esi, dword [esi]
mov byte [ebp - 4], 2
cmp esi, eax
je 0x410512
mov esi, dword [esi]
jmp 0x410514
xor esi, esi
push esi
push 0x4485c8
lea eax, [ebp + 0x3e8]
push str._s_s
push eax
call fcn.0041d872
add esp, 0x10
push 0x20019
lea eax, [ebp + 0x3e8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x20]
call fcn.004011e7
xor esi, esi
cmp eax, esi
je 0x410577
jle 0x410559
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], vtable._com_error.0
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
push 0x451450
lea eax, [ebp - 0x44]
push eax
call fcn.0041ca4e
mov eax, dword [edi]
cmp eax, esi
je 0x410581
mov eax, dword [eax]
jmp 0x410583
xor eax, eax
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push esi
push eax
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x4105cb
jle 0x4105b1
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], vtable._com_error.0
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
push 0x451450
lea eax, [ebp - 0x54]
jmp 0x410571
lea eax, [ebp - 0x34]
push eax
call ebx
mov eax, dword [ebp - 0x18]
dec eax
mov byte [ebp - 4], 3
je 0x410610
sub eax, 3
je 0x410601
mov dword [ebp - 0x64], vtable._com_error.0
mov dword [ebp - 0x60], 0x80004005
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
push 0x451450
lea eax, [ebp - 0x64]
jmp 0x410571
push 3
pop eax
mov word [ebp - 0x34], ax
mov eax, dword [ebp]
mov dword [ebp - 0x2c], eax
jmp 0x41061c
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x34]
call fcn.004021bc
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x34]
push eax
call fcn.0040f666
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x34]
push eax
call esi
lea ecx, [ebp - 0x20]
call fcn.0040117e
lea eax, [ebp - 0x74]
push eax
call esi
jmp 0x410661
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x5f0]
xor ecx, ebp
call fcn.0041d759
add ebp, 0x5f4
leave
ret
Function at 0x4109ee
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x45c270]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
call fcn.0040ea97
test eax, eax
je 0x410a15
xor eax, eax
inc eax
jmp 0x410aaa
push ebx
push esi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, esi
jne 0x410a33
push str.Couldnt_open_service_manager
jmp 0x410a83
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push esi
push str.RPCSS
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push 1
push 2
push 0x10
push 0xf01ff
lea eax, [edi + 0x244]
push eax
add edi, 0x44
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp eax, esi
jne 0x410a99
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push str.Couldnt_create_service
push 1
push esi
push 1
push str.LCSVRDBA
call fcn.00402333
add esp, 0x14
xor eax, eax
jmp 0x410aa8
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push ebx
call esi
xor eax, eax
inc eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0041d759
leave
ret

Function at 0x410ab7
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
call fcn.0040ea97
test eax, eax
jne 0x410acc
inc eax
jmp 0x410b57
push ebp
push edi
push 0xf003f
xor ebp, ebp
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebp
jne 0x410aea
push str.Couldnt_open_service_manager
jmp 0x410b41
push 0x10020
add esi, 0x44
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebp
jne 0x410b0e
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push str.Couldnt_open_service
jmp 0x410b41
push ebx
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
cmp ebx, ebp
pop ebx
je 0x410b3c
xor eax, eax
inc eax
jmp 0x410b55
push str.Service_could_not_be_deleted
push 1
push ebp
push 1
push str.LCSVRDBA
call fcn.00402333
add esp, 0x14
xor eax, eax
pop edi
pop ebp
pop esi
add esp, 0x1c
ret
Function at 0x410bb0
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x444285
call fcn.0041d79b
mov esi, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 8]
xor ebx, ebx
xor ecx, ecx
push 0xc
pop edx
mul edx
seto cl
mov dword [esi + 0x10], ebx
mov dword [0x45d4b8], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
neg ecx
or ecx, eax
push ecx
call fcn.0041bb68
pop ecx
cmp eax, ebx
je 0x410c04
mov edx, dword [ebp + 8]
mov ecx, eax
dec edx
js 0x410c06
mov dword [ecx + 8], ebx
mov dword [ecx + 4], ebx
add ecx, 0xc
jmp 0x410bf6
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0xc], eax
jmp 0x410c1e
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x410c36
push 0x80004005
mov byte [0x45d4bc], 1
call fcn.0040109c
mov edi, dword [ebp + 8]
mov ecx, edi
imul ecx, ecx, 0xc
push ecx
push ebx
push eax
call fcn.0041d260
add esp, 0xc
cmp edi, ebx
mov dword [esi + 8], edi
mov dword [ebp - 0x14], ebx
jle 0x410cbc
xor edi, edi
call fcn.0040ec0a
push ebx
mov dword [ebp - 0x18], eax
call fcn.00421299
push eax
call fcn.0040eb08
mov eax, dword [esi + 0xc]
add eax, edi
push eax
push ebx
push eax
push 0x40ff3b
push ebx
push ebx
call fcn.00421677
mov ecx, dword [esi + 0xc]
mov dword [ecx + edi + 4], eax
mov eax, dword [esi + 0xc]
add esp, 0x20
cmp dword [eax + edi + 4], ebx
je 0x410cb0
push dword [ebp - 0x18]
call fcn.00421299
push eax
call fcn.0040eb08
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
pop ecx
add edi, 0xc
cmp eax, dword [ebp + 8]
pop ecx
jl 0x410c55
jmp 0x410cbc
call fcn.0040ec0a
mov byte [0x45d4bc], 1
cmp byte [0x45d4bc], bl
jne 0x410cd4
push str.ATL_CREATE_OBJECT
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [0x45d4cc], eax
mov eax, esi
call fcn.0041d840
ret 4
Function at 0x412f9f
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x45c270]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push ebx
mov ebx, ecx
push 0x104
lea ecx, [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
ja 0x412fde
xor eax, eax
jmp 0x413078
push esi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jbe 0x41302e
mov ecx, ebx
call fcn.00412f88
push esi
call fcn.0041bb68
pop ecx
push eax
push esi
push dword [ebp - 0x7c]
mov dword [ebx + 0x3c], eax
lea eax, [ebp - 0x70]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41302e
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push 0x449024
push dword [ebx + 0x3c]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x413032
xor eax, eax
jmp 0x413077
mov esi, dword [ebp - 0x74]
push edi
push 0xd
pop ecx
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea edi, [ebx + 4]
push str.VarFileInfoTranslation
mov dword [ebp - 0x80], edi
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x3c]
call sub.VERSION.dll_VerQueryValueW
pop edi
test eax, eax
je 0x413069
cmp dword [ebp - 0x78], 4
jb 0x413069
mov eax, dword [ebp - 0x74]
mov eax, dword [eax]
mov dword [ebx + 0x38], eax
mov ecx, dword [ebp - 0x80]
xor eax, eax
cmp dword [ecx], 0xfeef04bd
sete al
pop esi
mov ecx, dword [ebp + 0x198]
xor ecx, ebp
pop ebx
call fcn.0041d759
add ebp, 0x19c
leave
ret 4
Function at 0x413e92
Capabilities:
Accept command line arguments

Disassembly:
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x45c270]
xor eax, ebp
mov dword [ebp + 0x1a4], eax
push ebx
push esi
mov esi, dword [ebp + 0x1b0]
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x4483b8
push 0x64
push esi
mov ebx, 0x45d4f8
push 0x459c10
mov ecx, ebx
mov dword [ebp - 0x70], eax
call fcn.0041095e
mov esi, 0x4492fc
lea edi, [ebp + 0x19c]
lea eax, [ebp + 0x19c]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp - 0x70]
mov dword [0x45d95c], 1
movsw word es:[edi], word [esi]
call fcn.0040ea1e
mov edi, eax
xor esi, esi
pop ecx
pop ecx
cmp edi, esi
je 0x413f7a
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x4492e4
push edi
call esi
test eax, eax
je 0x413fd5
push 0x4492e0
push edi
call esi
test eax, eax
je 0x413fd5
push 0x4492cc
push edi
call esi
test eax, eax
je 0x413fc8
push 0x4492c8
push edi
call esi
test eax, eax
je 0x413fc8
push str.Service
push edi
call esi
test eax, eax
je 0x413fc4
push 0x4464a8
push edi
call esi
test eax, eax
je 0x413fc4
lea eax, [ebp + 0x19c]
push eax
push edi
call fcn.0040ea1e
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x413f0f
xor esi, esi
mov edi, 0x20019
push edi
push str.AppID
push SysReAllocString
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
call fcn.004011e7
mov dword [ebp - 0x70], eax
cmp eax, esi
je 0x413fde
lea ecx, [ebp - 0x7c]
call fcn.0040117e
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp + 0x1a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d759
add ebp, 0x1a8
leave
ret 0x10
push 1
jmp 0x413fca
push 0
push 1
mov ecx, ebx
call fcn.00413d03
jmp 0x413faa
mov ecx, ebx
call fcn.00413e04
jmp 0x413faa
push edi
push str.DC9ED10A_AD4E_11D3_923F_00902723519D
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
call fcn.004011e7
cmp eax, esi
je 0x41400f
mov esi, eax
lea ecx, [ebp - 0x74]
call fcn.0040117e
lea ecx, [ebp - 0x7c]
call fcn.0040117e
mov eax, esi
jmp 0x413faa
lea eax, [ebp - 0x80]
push eax
push str.LocalService
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x80], 0x104
call fcn.0040121c
mov dword [0x45d95c], esi
cmp eax, esi
jne 0x41403f
mov dword [0x45d95c], 1
mov ecx, ebx
call fcn.00413e48
mov esi, dword [0x45d94c]
jmp 0x413ffb

Function at 0x41d759
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45c270]
jne 0x41d763
repz ret
jmp fcn.00427a5c
Function at 0x435a53
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.0042738e
and dword [ebp - 4], 0
cmp dword [0x45e4f0], 0
mov ebx, eax
jne 0x435b04
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x435bb5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x435bb5
push eax
call fcn.0042731c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45e4f0], eax
call esi
push eax
call fcn.0042731c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45e4f4], eax
call esi
push eax
call fcn.0042731c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45e4f8], eax
call esi
push eax
call fcn.0042731c
pop ecx
mov dword [0x45e500], eax
test eax, eax
je 0x435b04
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042731c
pop ecx
mov dword [0x45e4fc], eax
mov eax, dword [0x45e4fc]
cmp eax, ebx
je 0x435b5c
cmp dword [0x45e500], ebx
je 0x435b5c
push eax
call fcn.00427397
push dword [0x45e500]
mov esi, eax
call fcn.00427397
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x435b5c
test edi, edi
je 0x435b5c
call esi
test eax, eax
je 0x435b53
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x435b53
test byte [ebp - 0xc], 1
jne 0x435b5c
or dword [ebp + 0x10], 0x200000
jmp 0x435b95
mov eax, dword [0x45e4f4]
cmp eax, ebx
je 0x435b95
push eax
call fcn.00427397
pop ecx
test eax, eax
je 0x435b95
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x435b95
mov eax, dword [0x45e4f8]
cmp eax, ebx
je 0x435b95
push eax
call fcn.00427397
pop ecx
test eax, eax
je 0x435b95
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45e4f0]
call fcn.00427397
pop ecx
test eax, eax
je 0x435bb5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x435bb7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret