joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4108a0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x108
lea eax, [esp + 4]
push ebx
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea esi, [esp + eax + 0x10]
mov edx, str.driverscdnprot.sys
mov edi, 0x104
mov eax, esi
sub edx, esi
mov cl, byte [edx + eax]
test cl, cl
je 0x4108da
mov byte [eax], cl
inc eax
dec edi
jne 0x4108cb
jmp 0x4108de
test edi, edi
jne 0x4108df
dec eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [esp + 0x10]
push ecx
mov byte [eax], 0
call ebx
cmp eax, 0xffffffff
je 0x410903
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x108
ret
mov edx, str.driverscnprov.sys
mov edi, 0x104
mov eax, esi
sub edx, esi
mov cl, byte [edx + eax]
test cl, cl
je 0x410920
mov byte [eax], cl
inc eax
dec edi
jne 0x410911
jmp 0x410924
test edi, edi
jne 0x410925
dec eax
lea edx, [esp + 0x10]
mov byte [eax], 0
push edx
call ebx
cmp eax, 0xffffffff
je 0x410943
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x108
ret
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00406160
add esp, 8
mov ecx, 0x104
lea eax, [esp + 0x10]
cmp byte [eax], 0
je 0x410969
inc eax
dec ecx
jne 0x41095e
jmp 0x4109ad
test ecx, ecx
je 0x4109ad
lea edx, [esp + 0xc]
test edx, edx
je 0x41097e
mov eax, 0x104
sub eax, ecx
jmp 0x410982
mov eax, dword [esp + 0xc]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax + 0x10]
je 0x4109ad
mov esi, str.OCINSidnsvr.exe
sub esi, eax
mov cl, byte [esi + eax]
test cl, cl
je 0x4109a5
mov byte [eax], cl
inc eax
dec edx
jne 0x410996
jmp 0x4109a9
test edx, edx
jne 0x4109aa
dec eax
mov byte [eax], 0
lea eax, [esp + 0x10]
push eax
call ebx
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop edi
pop esi
mov eax, ecx
pop ebx
add esp, 0x108
ret

Function at 0x4109d0
Capabilities:
Create process on windows

Disassembly:
call fcn.004108a0
test eax, eax
je 0x410a15
push 0x44
push 0x4190e0
push 0x41d380
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x410a0f
push 5
push 0
push 0
push str.http:__dl.360safe.com_killer_cnnic.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, 1
ret
xor eax, eax
ret

Function at 0x411330
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
ret
Function at 0x41137c
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov ecx, 0x41d8a8
jmp 0x411360
push 0xffffffffffffffff
push 0x41452d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov byte [esi + 4], al
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov cl, byte [esp + 7]
mov dword [esp + 0x14], eax
mov byte [esi + 0x14], cl
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dl, byte [esp + 7]
mov dword [esi + 0x28], eax
mov byte [esi + 0x24], dl
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov cl, byte [esp + 7]
mov dword [esi + 0x38], eax
mov byte [esi + 0x34], cl
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dl, byte [esp + 7]
mov dword [esi + 0x48], eax
mov byte [esi + 0x44], dl
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov cl, byte [esp + 7]
mov dword [esi + 0x58], eax
mov byte [esi + 0x54], cl
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov dl, byte [esp + 7]
mov dword [esi + 0x68], eax
mov byte [esi + 0x64], dl
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
mov ecx, esi
mov byte [esp + 0x14], 6
mov dword [esi], 0x4158fc
call fcn.00411540
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x411440
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41458d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x4158fc
mov dword [esp + 0x14], 6
call fcn.00411590
mov eax, dword [esi + 0x68]
push eax
mov dword [esp + 0xc], eax
call fcn.00413190
xor edi, edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov eax, dword [esi + 0x58]
push eax
mov dword [esp + 0x10], eax
call fcn.00413190
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov eax, dword [esi + 0x48]
push eax
mov dword [esp + 0x14], eax
call fcn.00413190
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov eax, dword [esi + 0x38]
push eax
mov dword [esp + 0x18], eax
call fcn.00413190
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov eax, dword [esi + 0x28]
push eax
mov dword [esp + 0x1c], eax
call fcn.00413190
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov eax, dword [esi + 0x18]
push eax
mov dword [esp + 0x20], eax
call fcn.00413190
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
add esi, 4
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
push eax
push ecx
mov ecx, esi
call fcn.00412690
mov edx, dword [esi + 4]
push edx
call fcn.00413190
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4116f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x411711
add eax, 0x108
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x411711
mov eax, 1
ret 4
xor eax, eax
ret 4

Function at 0x411720
Capabilities:
Delete file
Delete registry key
Delete registry value
Move file
Persist via run registry key
Set file attributes

Disassembly:
sub esp, 0x108
push ebx
push esi
mov esi, dword [esp + 0x114]
push edi
mov dword [esp + 0xc], ecx
mov eax, dword [esi]
cmp eax, 1
jne 0x411763
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
lea edi, [esi + 4]
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call ebx
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call ebx
jmp 0x411855
cmp eax, 2
jne 0x41178e
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
lea edi, [esi + 4]
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellExecuteHooks
push 0x80000002
call ebx
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellExecuteHooks
push 0x80000001
call ebx
push edi
jmp 0x411797
cmp eax, 4
jne 0x4117be
lea edx, [esi + 4]
push edx
push str.CLSID_s
lea eax, [esp + 0x18]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push 0x80000000
jmp 0x41184f
cmp eax, 8
jne 0x411824
lea edi, [esi + 4]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__snprintf]
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerBrowser_Helper_Objects_s
lea edx, [esp + 0x1c]
push 0x104
push edx
call ebp
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
add esp, 0x10
lea eax, [esp + 0x14]
push eax
push 0x80000002
call ebx
lea ecx, [esp + 0x14]
push ecx
push 0x80000001
call ebx
push edi
push str.CLSID_s
lea edx, [esp + 0x1c]
push 0x104
push edx
call ebp
add esp, 0x10
lea eax, [esp + 0x14]
push eax
push 0x80000000
call ebx
pop ebp
jmp 0x411855
cmp eax, 0x20
jne 0x411855
lea ecx, [esi + 4]
lea edx, [esp + 0x10]
push ecx
push str.SYSTEMCurrentControlSetServices_s
push 0x104
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, dword [esp + 0xc]
push esi
call fcn.004116f0
test eax, eax
je 0x4118a2
add esi, 0x108
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4118a2
mov eax, dword [esp + 0x11c]
test eax, eax
je 0x4118a2
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop edi
pop esi
pop ebx
add esp, 0x108
ret 8
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x108
ret 8
Function at 0x4118c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x220
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x24], 1
mov byte [esp + 0x12c], 0
mov byte [esp + 0x28], 0
mov edi, 0x4158f4
mov ecx, dword [edi]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411972
xor esi, esi
mov eax, 0x104
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x12c]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x28]
push 0
lea eax, [esp + 0x38]
push edx
push eax
push esi
push ecx
call ebx
test eax, eax
jne 0x411967
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
inc ecx
lea eax, [ebp + 4]
mov dword [esp + 0x10], ecx
push edx
push eax
mov ecx, ebp
call fcn.00412290
inc esi
jmp 0x411914
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, 4
cmp edi, 0x4158fc
jb 0x4118f4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x220
ret
Function at 0x411990
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x330
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
mov edi, 0x4158f4
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x30], 2
mov byte [esp + 0x138], 0
mov byte [esp + 0x34], 0
mov dword [esp + 0x18], edi
mov ebx, 0x104
mov ecx, dword [edi]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellExecuteHooks
push ecx
call esi
test eax, eax
jne 0x411adc
xor edi, edi
lea edx, [esp + 0x28]
lea eax, [esp + 0x23c]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x1c]
push 0
lea eax, [esp + 0x44]
push edx
push eax
push edi
push ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x411acd
cmp byte [esp + 0x34], 0x7b
jne 0x411ac7
cmp dword [esp + 0x10], 0x26
jb 0x411ac7
lea edx, [esp + 0x34]
lea eax, [esp + 0x23c]
push edx
push str.CLSID_sInprocServer32
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x20]
lea edx, [esp + 0x23c]
push ecx
push 0x20019
push 0
push edx
push 0x80000000
call esi
test eax, eax
jne 0x411ac7
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x138]
push eax
push ecx
push 0
push 0
push 0
push edx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x411abc
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc edx
lea eax, [esp + 0x30]
mov dword [esp + 0x14], edx
lea edx, [ecx + 0x14]
push eax
push edx
call fcn.00412290
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
jmp 0x4119f5
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x18]
add edi, 4
cmp edi, 0x4158fc
mov dword [esp + 0x18], edi
jb 0x4119d5
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x330
ret
Function at 0x411b00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x330
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__snprintf]
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, 0x4158f4
push edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x30], 4
mov byte [esp + 0x138], 0
mov byte [esp + 0x34], 0
mov dword [esp + 0x18], ebp
mov edi, 0x104
mov ecx, dword [ebp]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionShellServiceObjectDelayLoad
push ecx
call esi
test eax, eax
jne 0x411c4e
xor ebp, ebp
lea edx, [esp + 0x10]
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x34]
push 0
lea eax, [esp + 0x24c]
push edx
push eax
push ebp
push ecx
mov dword [esp + 0x48], edi
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x411c3f
cmp byte [esp + 0x34], 0x7b
jne 0x411c39
cmp dword [esp + 0x10], 0x26
jb 0x411c39
lea edx, [esp + 0x34]
lea eax, [esp + 0x23c]
push edx
push str.CLSID_sInprocServer32
push edi
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x20]
lea edx, [esp + 0x23c]
push ecx
push 0x20019
push 0
push edx
push 0x80000000
call esi
test eax, eax
jne 0x411c39
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x138]
push eax
push ecx
push 0
push 0
push 0
push edx
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x411c2e
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc edx
lea eax, [esp + 0x30]
mov dword [esp + 0x14], edx
lea edx, [ecx + 0x24]
push eax
push edx
call fcn.00412290
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebp
jmp 0x411b66
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x18]
add ebp, 4
cmp ebp, 0x4158fc
mov dword [esp + 0x18], ebp
jb 0x411b45
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x330
ret
Function at 0x411c70
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x328
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, 0x4158f4
push edi
mov edi, dword [sym.imp.MSVCRT.dll__snprintf]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x28], 8
mov byte [esp + 0x130], 0
mov byte [esp + 0x2c], 0
mov dword [esp + 0x14], ebp
mov ebx, 0x104
mov ecx, dword [ebp]
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerBrowser_Helper_Objects
push ecx
call esi
test eax, eax
jne 0x411d93
xor ebp, ebp
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push ebx
push edx
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x411d84
cmp byte [esp + 0x2c], 0x7b
jne 0x411d7e
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x234]
push ecx
push str.CLSID_sInprocServer32
push ebx
push edx
call edi
add esp, 0x10
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x234]
push eax
push 0x20019
push 0
push ecx
push 0x80000000
call esi
test eax, eax
jne 0x411d7e
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x20]
lea eax, [esp + 0x130]
push edx
push eax
push 0
push 0
push 0
push ecx
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x411d73
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x28]
inc ecx
push edx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x28]
lea eax, [ecx + 0x34]
push eax
call fcn.00412290
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebp
jmp 0x411cd6
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x14]
add ebp, 4
cmp ebp, 0x4158fc
mov dword [esp + 0x14], ebp
jb 0x411cb5
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x328
ret
Function at 0x411dd0
Capabilities:
Get common file path
Get file attributes
Persist via appinit_dlls registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x524
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWindows
mov ebp, ecx
push 0x80000002
mov dword [esp + 0x30], 0x40
mov byte [esp + 0x34], 0
mov byte [esp + 0x138], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411eff
lea ecx, [esp + 0x14]
mov byte [esp + 0x228], al
lea edx, [esp + 0x228]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push str.AppInit_DLLs
push ecx
mov dword [esp + 0x2c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x411eff
lea eax, [esp + 0x430]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x228]
lea esi, [esp + 0x228]
test ecx, ecx
je 0x411eff
mov ebx, dword [sym.imp.MSVCRT.dll__snprintf]
cmp byte [esi], 0
je 0x411eff
push 0x2c
push esi
call dword [sym.imp.MSVCRT.dll__mbschr]
mov edi, eax
add esp, 8
test edi, edi
je 0x411ea3
mov byte [edi], 0
inc edi
lea edx, [esp + 0x430]
push esi
push edx
push str._s_s
lea eax, [esp + 0x130]
push 0x104
push eax
call ebx
add esp, 0x14
lea ecx, [esp + 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x411ef9
push 0x104
lea edx, [esp + 0x24]
push esi
push edx
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [ebp + 0x64]
push eax
push ecx
mov ecx, ebp
call fcn.00412290
test edi, edi
mov esi, edi
jne 0x411e88
mov eax, dword [ebp + 0x68]
test eax, eax
jne 0x411f11
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x524
ret
mov ecx, dword [ebp + 0x6c]
pop edi
sub ecx, eax
mov eax, 0x3e88cb3d
imul ecx
sar edx, 7
mov eax, edx
pop esi
shr eax, 0x1f
add edx, eax
pop ebp
mov eax, edx
pop ebx
add esp, 0x524
ret
Function at 0x411f40
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x328
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0xc]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push str.SYSTEMCurrentControlSetServices
mov dword [esp + 0x28], ecx
push 0x80000002
mov dword [esp + 0x20], edi
mov dword [esp + 0x34], 0x20
mov byte [esp + 0x38], 0
mov byte [esp + 0x13c], 0
call esi
test eax, eax
jne 0x412067
mov edi, dword [sym.imp.MSVCRT.dll__snprintf]
mov dword [esp + 8], eax
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push 0x104
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x41204f
lea ecx, [esp + 0x24]
lea edx, [esp + 0x22c]
push ecx
push str.SYSTEMCurrentControlSetServices_s
push 0x104
push edx
call edi
add esp, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0x22c]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call esi
test eax, eax
jne 0x412046
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x128]
push edx
push eax
push 0
push 0
push str.ImagePath
push ecx
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41203b
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x20]
inc ecx
push edx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + 0x54]
push eax
call fcn.00412290
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [esp + 8]
jmp 0x411f96
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
pop edi
pop esi
add esp, 0x328
ret
mov eax, edi
pop edi
pop esi
add esp, 0x328
ret
Function at 0x4127b0
Capabilities:
Get file version info

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
push eax
mov edi, ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x412863
mov eax, dword [edi + 0x108]
test eax, eax
je 0x4127e5
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [edi + 0x108], eax
test eax, eax
je 0x412863
push eax
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x412863
mov eax, dword [edi + 0x108]
lea ecx, [esp + 0x18]
lea edx, [esp + 0xc]
push ecx
push edx
push str.VarFileInfoTranslation
push eax
mov dword [esp + 0x28], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x412863
mov eax, dword [esp + 0xc]
xor edx, edx
add edi, 4
mov ecx, dword [eax]
mov dx, word [eax]
shr ecx, 0x10
push ecx
push edx
push str.StringFileInfo_04x_04x
push 0x104
push edi
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 8
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4

Function at 0x412950
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 5
jne 0x41297d
mov ecx, dword [esp + 8]
mov eax, 1
cmp ecx, eax
jae 0x41297f
xor eax, eax
add esp, 0x94
ret
Function at 0x412cc0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x130
push ebx
mov ebx, dword [esp + 0x138]
push ebp
push esi
xor esi, esi
push edi
cmp ebx, esi
mov edi, ecx
jne 0x412ce8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x130
ret 0x14
mov ebp, dword [esp + 0x150]
cmp ebp, esi
jne 0x412d20
lea eax, [esp + 0x10]
lea ecx, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x412d1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret 0x14
lea ebp, [esp + 0x3c]
mov ecx, dword [esp + 0x148]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push esi
push eax
push esi
push esi
push 4
push ecx
push ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoA]
test eax, eax
jne 0x412df7
mov ebx, dword [esp + 0x14c]
cmp ebx, 2
je 0x412d5f
cmp ebx, 1
jne 0x412d6e
mov edx, dword [esp + 0x14]
push ebp
push 3
push edx
mov ecx, edi
call fcn.00412c50
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x1c]
push 3
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x158]
push ebx
push eax
lea ecx, [esp + 0x28]
push ebp
push ecx
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameA]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
jne 0x412dec
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x148]
mov ecx, dword [esp + 0x144]
push 0
push edx
push 0
push 0
push 4
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
mov esi, eax
mov eax, dword [esp + 0x10]
neg esi
sbb esi, esi
inc esi
test eax, eax
je 0x412dec
push eax
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x412df7
push eax
call edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret 0x14

Function at 0x4131a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x413211
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x413211
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x4131fa
jmp 0x413211
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8