joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c0c20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5455a0
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0053db41
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x4c0c53
xor al, al
jmp 0x4c0d7f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x4c0c75
xor al, al
jmp 0x4c0d7f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x4c0c88
xor al, al
jmp 0x4c0d7f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x4c0c9c
xor al, al
jmp 0x4c0d7f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.00531e1a
test eax, eax
jne 0x4c0cd0
xor al, al
jmp 0x4c0d7f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x1ca5bec
mov dword [esp + 0x20], ebp
call fcn.0053db41
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.0053a99b
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.0053a9f2
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x4c0d64
mov ax, word [ebx]
test ax, ax
je 0x4c0d56
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.004c0da0
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x4c0d3a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.0053a9f2
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x4c12a0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.0053c04b
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x4c12e6
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.0051fefc
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x1ccffd8
push ecx
call fcn.00521cdd
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x4e84a0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
test esi, esi
jle 0x4e84cc
mov ecx, dword [esp + 8]
push ebx
xor edx, edx
xor ebx, ebx
mov dl, byte [ecx]
mov bl, byte [edx + 0x1ca5d94]
lea edx, [eax*8]
xor ebx, edx
xor eax, ebx
inc ecx
dec esi
jne 0x4e84b0
pop ebx
pop esi
ret
Function at 0x5154d0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x515519
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x515990
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x545a20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00515540
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.005155c0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.005155c0
lea ecx, [esi + 0xc]
call fcn.00533b06
lea ecx, [esi + 0x10]
call fcn.00533b06
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00516b50
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00516b50
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00516b50
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00533b7b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00533b7b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x516d40
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x516da6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x516da6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x516d87
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x535f5e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x535f96
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00533fd6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00533fae
jmp 0x535fa2
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x537759
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x53779b
call fcn.0053db41
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x53779b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x537792
xor eax, eax
jmp 0x5377a3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005377a9
pop edi
pop esi
pop ebx
ret 4

Function at 0x53e071
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x53e09f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x53e0bd
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0053dfd7
jmp 0x53e0bd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x53e0bd
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0053dfd7
test edi, edi
mov eax, edi
jne 0x53e0a7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x40893f
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
add ebx, 0x86aece58
call fcn.00408967
inc eax
xor dword [esi], ecx
mov ebx, ebx
add eax, 0x11f100de
inc esi
mov eax, 0xf9981505
cmp esi, edi
jne fcn.0040893f
ret
Function at 0x4010d9
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov esi, edx
mov dword [esp + 0x14], ecx
call edi
mov ebp, dword [esi + 0x14]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
jmp 0x40114c
mov eax, dword [esi + 0x18]
xor edx, edx
push 0xa
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jae 0x401111
mov eax, ecx
jmp 0x40111b
mov ecx, 0x2710
cmp eax, ecx
cmova eax, ecx
push eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
push esi
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00401040
test eax, eax
je 0x40115b
cmp dword [esi + 0x14], ebp
jbe 0x401141
call edi
mov ebp, dword [esi + 0x14]
mov dword [esp + 0x10], eax
jmp 0x40114c
call edi
sub eax, dword [esp + 0x10]
cmp eax, dword [esi + 0x18]
ja 0x40115b
cmp dword [esi + 4], ebx
je 0x4010fa
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
xor eax, eax
jmp 0x401154

Function at 0x40115f
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x477014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0xf003f
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x401233
push edi
push 0xf01ff
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x30], esi
test esi, esi
je 0x401222
push 9
pop ecx
xor eax, eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push ebx
push esi
call edi
test eax, eax
je 0x401220
cmp dword [ebp - 0x24], 3
je 0x4011d5
cmp dword [ebp - 0x24], 1
jne 0x40121d
push 3
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x30]
call fcn.004010d9
pop ecx
test eax, eax
je 0x401220
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x401220
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push ebx
push esi
call edi
test eax, eax
je 0x401220
push 2
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x30]
call fcn.004010d9
cmp dword [ebp - 0x24], 4
pop ecx
jne 0x401220
xor ebx, ebx
inc ebx
test esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x40122d
push esi
call edi
push dword [ebp - 0x34]
call edi
pop edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0042fb8d
mov esp, ebp
pop ebp
ret
Function at 0x40125a
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status

Disassembly:
push 0x50
mov eax, 0x45bf56
call fcn.00454457
mov edi, edx
mov dword [ebp - 0x48], ecx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor esi, esi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x38]
xor ebx, ebx
push eax
push esi
push esi
inc ebx
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x40131f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xea
je 0x4012b3
mov ebx, esi
jmp 0x40131f
push dword [ebp - 0x38]
lea ecx, [ebp - 0x5c]
call fcn.00401604
mov esi, dword [ebp - 0x5c]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x44], esi
push eax
push dword [ebp - 0x38]
push esi
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x40131d
and dword [ebp - 0x40], 0
cmp dword [ebp - 0x3c], 0
jbe 0x40131f
mov eax, dword [ebp - 0x48]
push 0x24
push dword [esi]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x40131d
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x401366
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
lea ecx, [ebp - 0x5c]
call fcn.0040167c
mov eax, ebx
call fcn.00454401
ret
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_Sleep]
and dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x401316
cmp dword [ebp - 0x30], ebx
je 0x40136b
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [ebp - 0x50]
cmp eax, dword [ebp + 8]
ja 0x401316
cmp dword [ebp - 0x30], ebx
jne 0x40132f
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
inc edi
add esi, 0x24
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], esi
cmp edi, dword [ebp - 0x3c]
jb 0x4012e7
jmp 0x40131f
Function at 0x401392
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push 0x3c
mov eax, 0x45bf8b
call fcn.00454457
mov dword [ebp - 0x44], edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp - 0x40], eax
xor edi, edi
push 0xf003f
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x401508
push 0x2c
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
mov dword [ebp - 0x48], ebx
test ebx, ebx
je 0x4014fd
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
xor edi, edi
push eax
push 0x24
lea eax, [ebp - 0x34]
mov dword [ebp - 0x3c], edi
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4014f2
cmp dword [ebp - 0x30], 1
je 0x4014ef
jmp 0x401478
mov eax, dword [ebp - 0x1c]
xor edx, edx
push 0xa
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jae 0x401432
mov eax, ecx
jmp 0x40143c
mov ecx, 0x2710
cmp eax, ecx
cmova eax, ecx
push eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4014f2
cmp dword [ebp - 0x30], 1
je 0x4014ef
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x44]
ja 0x4014f2
cmp dword [ebp - 0x30], 3
je 0x40141b
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
mov ecx, dword [ebp - 0x40]
lea edx, [ebp - 0x48]
add ecx, dword [ebp - 0x44]
sub ecx, eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.0040125a
mov ebx, dword [ebp - 0x48]
lea eax, [ebp - 0x34]
pop ecx
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4014e6
mov esi, dword [ebp - 0x38]
jmp 0x4014f2
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4014af
cmp dword [ebp - 0x30], 1
je 0x4014ec
call esi
sub eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x44]
ja 0x4014af
cmp dword [ebp - 0x30], 1
jne 0x4014b4
mov esi, dword [ebp - 0x38]
xor edi, edi
inc edi
test ebx, ebx
je 0x4014fd
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x401508
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
call fcn.00454401
ret
Function at 0x402b3d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x402b96
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x402b87
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov edx, dword [esp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x402b83
cmp esi, ecx
jae 0x402b87
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x402b71
cmp esi, ecx
jb 0x402b8b
xor eax, eax
jmp 0x402b95
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402c74
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x40
mov eax, dword [0x477014]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
xor eax, eax
mov ebx, dword [esp + 0x48]
push ebp
push esi
push edi
mov byte [esp + 0x20], al
lea edi, [esp + 0x21]
mov dword [esp + 0x14], eax
mov ebp, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
stosd dword es:[edi], eax
mov esi, dword [esp + 0x5c]
push 1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor edi, edi
lea eax, [esp + 0x20]
push edi
push edi
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [esp + 0x20]
mov dword [esp + 0x14], 0xc
push esi
mov edx, ebx
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], eax
call fcn.00401061
pop ecx
cmp dword [eax + 0x14], 8
jb 0x402cf8
mov eax, dword [eax]
push eax
push edi
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov esi, eax
cmp dword [ebp], esi
je 0x402d2f
cmp dword [ebp], edi
je 0x402d23
cmp dword [ebp], 0xffffffff
je 0x402d23
push dword [ebp]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp], edi
test esi, esi
je 0x402d2f
cmp esi, 0xffffffff
je 0x402d2f
mov dword [ebp], esi
push edi
push 1
lea ecx, [esp + 0x3c]
call fcn.00401bd2
cmp dword [ebp], edi
je 0x402d6a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x402d6a
push edi
push str.SMG_Installer
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x402d66
push 1
push eax
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
xor eax, eax
jmp 0x402d6d
xor eax, eax
inc eax
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042fb8d
add esp, 0x40
ret 0xc
Function at 0x403439
Capabilities:
Get user security identifier

Disassembly:
push ebp
sub esp, 0xc8
lea ebp, [esp - 4]
mov eax, dword [0x477014]
xor eax, ebp
mov dword [ebp + 0xc8], eax
push 8
mov eax, 0x45c28e
call fcn.00454423
mov esi, ecx
mov edi, dword [ebp + 0xd4]
call fcn.0040359a
test edi, edi
je 0x403573
and dword [ebp], 0
and dword [ebp - 4], 0
lea ecx, [ebp]
push 0x100
call fcn.0040c471
mov ebx, dword [ebp]
lea eax, [esi + 0x4c]
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0x44
push eax
push ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0x80
push eax
lea eax, [ebp + 0x84]
push eax
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x403510
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x40355c
cmp dword [ebp - 0x14], 0x44
jbe 0x4034d8
push 0x80004005
call fcn.00402c03
cmp dword [ebp - 0x10], 0x80
jbe 0x4034ef
push dword [ebp - 0x10]
lea ecx, [ebp]
call fcn.0040b0de
mov ebx, dword [ebp]
lea eax, [esi + 0x4c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x84]
push eax
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x40355c
lea eax, [ebp + 0x84]
mov byte [esi + 0x48], 1
push eax
lea eax, [esi + 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x40355c
push ebx
lea ecx, [esi + 0x54]
call fcn.0040e29d
push edi
lea ecx, [esi + 0x50]
call fcn.0040e29d
push 0
lea ecx, [esi + 0x5c]
call fcn.0040e29d
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x403558
lea ecx, [ebp]
call fcn.0040c437
mov al, 1
jmp 0x403575
mov ecx, esi
call fcn.0040359a
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x403573
lea ecx, [ebp]
call fcn.0040c437
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc8]
xor ecx, ebp
call fcn.0042fb8d
lea esp, [ebp + 0xcc]
pop ebp
ret 8
Function at 0x403d93
Capabilities:
Get common file path
Get file version info

Disassembly:
push 0x34
mov eax, 0x45c37f
call fcn.00454457
lea eax, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x2c], eax
xor edi, edi
xor eax, eax
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], ax
mov esi, 0x104
mov dword [ebp - 4], edi
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.00401d3c
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
mov ecx, dword [ebp - 0x2c]
push eax
call fcn.00401d1e
push str.System32_ntdll.dll
lea ecx, [ebp - 0x2c]
call fcn.0040af5d
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x14], 8
jb 0x403df2
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
jne 0x403e02
mov esi, edi
jmp 0x403e7c
push eax
lea ecx, [ebp - 0x40]
call fcn.0040af88
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x3c]
sub ecx, dword [ebp - 0x40]
cmp dword [eax + 0x14], 8
jb 0x403e1c
mov eax, dword [eax]
push dword [ebp - 0x40]
push ecx
push edi
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x403e72
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], edi
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], edi
push eax
push 0x4666a8
push dword [ebp - 0x40]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x403e72
mov ecx, dword [ebp - 0x30]
xor esi, esi
inc esi
mov ax, word [ecx + 0x12]
mov word [0x478e80], ax
mov ax, word [ecx + 0x10]
mov word [0x478e84], ax
mov ax, word [ecx + 0x16]
mov word [0x478e88], ax
jmp 0x403e74
mov esi, edi
lea ecx, [ebp - 0x40]
call fcn.0040167c
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.00401bd2
mov eax, esi
call fcn.00454401
ret