joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477880
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
xor esi, esi
xor ebx, ebx
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
cmp dword [esp + 0x30], esi
je 0x4778ba
cmp dword [esp + 0x34], esi
je 0x4778ba
push 0x200
call fcn.0048c93d
mov edi, eax
add esp, 4
cmp edi, esi
jne 0x4778c5
push 8
call dword [sym.imp.KERNEL32.DLL_SetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0x14]
push eax
push 0x20119
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x477a24
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
push edi
push esi
push edx
mov dword [esp + 0x30], pe_nt_image_headers32
call ebp
test eax, eax
jne 0x4779ba
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x47791d
mov eax, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x1c]
push ecx
push 0x20119
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x477993
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x20]
lea eax, [edi + 4]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x28], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x477988
mov eax, edi
mov dword [edi], 0x5c2e5c5c
call fcn.004777f0
cmp edx, ebx
jb 0x477988
ja 0x477982
cmp eax, dword [esp + 0x24]
jbe 0x477988
mov dword [esp + 0x24], eax
mov ebx, edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push edi
inc esi
push esi
push edx
mov dword [esp + 0x30], pe_nt_image_headers32
call ebp
test eax, eax
je 0x477910
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
ja 0x4779d0
cmp dword [esp + 0x24], 0
jbe 0x477a24
mov ecx, dword [esp + 0x24]
push ebx
push ecx
push str._012I64X
push 0x200
call fcn.004758a0
add esp, 0x10
test eax, eax
jne 0x477a09
push edi
mov dword [esp + 0x1c], 0xffffffff
call fcn.0048c860
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push edi
push edx
push str.MAC:
call fcn.00477420
add esp, 0xc
mov dword [esp + 0x18], eax
push edi
call fcn.0048c860
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x47a530
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad4d0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4dbe18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x4e6228]
xor edi, edi
cmp ecx, edi
jne 0x47a57b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x47a588
mov dword [ebp - 0x14], edi
jmp 0x47a5a0
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x47a646
mov ecx, dword [0x4e6228]
mov eax, dword [ecx]
cmp eax, edi
je 0x47a567
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x47a567
mov dword [ebp - 4], edi
mov ebx, 0x4e6228
call fcn.0047a660
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x47a5de
mov dword [ebp - 0x18], 1
push 0x4cd9e8
lea eax, [ebp - 0x18]
push eax
call fcn.0048f048
mov ecx, dword [0x4e6228]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x47a5f8
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, edi
jne 0x47a60d
mov dword [ebp - 0x1c], 4
push 0x4cd9e8
lea edx, [ebp - 0x1c]
push edx
call fcn.0048f048
mov dword [ebp - 4], 0xffffffff
jmp 0x47a632
mov eax, dword [0x4e6228]
mov eax, dword [eax]
test eax, eax
je 0x47a644
push eax
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47a660
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x47a68d
xor ecx, ecx
jmp 0x47a699
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x47a74d
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_OpenThread]
mov eax, dword [esi]
cmp dword [esp + 0x10], eax
jne 0x47a6c0
mov dword [esp + 0xc], esi
jmp 0x47a720
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x47a719
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x57
jne 0x47a70c
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x47a720
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
jmp 0x47a720
push 0x4c4440
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
jmp 0x47a720
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x47a743
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x47a6b2
mov eax, dword [esp + 0xc]
pop edi
pop ebp
test eax, eax
jne 0x47a761
mov ecx, dword [ebx]
add ecx, 8
call fcn.0047a8d0
test eax, eax
je 0x47a761
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
add esp, 8
ret

Function at 0x47a770
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x4ad4ab
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4dbe18]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.0048f0a0
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x47a808
push 0x4cd9e8
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.0048f048
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov dword [esp + 0x14], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x47aad0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x4afc21
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4dbe18]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dbe18]
xor eax, esp
push eax
lea eax, [esp + 0x25c]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov byte [esp + 0x17], bl
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], ax
push 0x206
lea edx, [esp + 0x56]
xor ecx, ecx
push ebx
mov dword [esp + 0x26c], ebx
push edx
mov word [esp + 0x5c], cx
call fcn.0048f0a0
add esp, 0xc
lea eax, [esp + 0x50]
push eax
push ebx
push ebx
push 0x25
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x47ab9e
lea eax, [esp + 0x50]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x47ab60
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x54]
lea esi, [esp + 0x38]
call fcn.004052b0
cmp dword [esp + 0x48], ebx
jne 0x47ab9e
cmp dword [esp + 0x4c], 8
jb 0x47ab97
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00480ff0
add esp, 4
xor al, al
jmp 0x47aca5
call fcn.0047af20
mov edi, dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebp, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test al, al
jne 0x47abbc
call fcn.0047afb0
test al, al
je 0x47ac2d
lea edx, [esp + 0x34]
push edx
mov ebx, str.Shcore.dll
lea esi, [esp + 0x1c]
call fcn.0040aed0
add esp, 4
mov byte [esp + 0x264], 1
mov eax, dword [esp + 0x1c]
mov esi, 8
cmp dword [esp + 0x30], esi
jae 0x47abed
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
je 0x47ac0b
push str.SetProcessDpiAwareness
push eax
call ebp
test eax, eax
je 0x47ac0b
push 1
call eax
test eax, eax
sete byte [esp + 0x17]
mov byte [esp + 0x264], 0
cmp dword [esp + 0x30], esi
jb 0x47ac26
mov eax, dword [esp + 0x1c]
push eax
call fcn.00480ff0
add esp, 4
cmp byte [esp + 0x17], 0
jne 0x47ac8d
lea ecx, [esp + 0x34]
push ecx
mov ebx, str.User32.dll
lea esi, [esp + 0x1c]
call fcn.0040aed0
add esp, 4
mov byte [esp + 0x264], 2
mov eax, dword [esp + 0x1c]
mov esi, 8
cmp dword [esp + 0x30], esi
jae 0x47ac5e
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
je 0x47ac7a
push str.SetProcessDPIAware
push eax
call ebp
test eax, eax
je 0x47ac7a
call eax
test eax, eax
setne byte [esp + 0x17]
cmp dword [esp + 0x30], esi
jb 0x47ac8d
mov edx, dword [esp + 0x1c]
push edx
call fcn.00480ff0
add esp, 4
cmp dword [esp + 0x4c], 8
jb 0x47aca1
mov eax, dword [esp + 0x38]
push eax
call fcn.00480ff0
add esp, 4
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0048ac3c
add esp, 0x254
ret
Function at 0x47adb0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4dbe18]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.0048f0a0
add esp, 0xc
push 0x104
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
jne 0x47ae09
xor eax, eax
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0048ac3c
add esp, 0x20c
ret
push str.ntdll.dll
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x47adf2
push str.RtlGetVersion
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0048ac3c
add esp, 0x20c
ret

Function at 0x47ae50
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4dbe18]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
push 0
push eax
call fcn.0048f0a0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
cmp dword [esp + 4], 5
jne 0x47ae9c
mov eax, 1
cmp dword [esp + 8], eax
je 0x47ae9e
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0048ac3c
add esp, 0x118
ret

Function at 0x47aec0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4dbe18]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
push 0
push eax
call fcn.0048f0a0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x114]
sbb eax, eax
xor ecx, esp
inc eax
call fcn.0048ac3c
add esp, 0x118
ret

Function at 0x47b0a0
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, eax
lea eax, [esp + 0x10]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x47b146
mov eax, dword [edi + 0x20c]
test eax, eax
je 0x47b0cf
push eax
call fcn.0048c860
add esp, 4
push esi
call fcn.0048c93d
add esp, 4
mov dword [edi + 0x20c], eax
test eax, eax
je 0x47b146
push eax
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x47b146
mov eax, dword [edi + 0x20c]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push str.VarFileInfoTranslation
push eax
mov dword [esp + 0x18], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x47b146
mov eax, dword [esp + 0xc]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
push str.StringFileInfo_04x_04x
push 0x208
add edi, 4
push edi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
pop edi
mov eax, 1
pop esi
add esp, 0xc
ret
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
Function at 0x47b6d0
Capabilities:
Check for peb beingdebugged flag
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4b0a12
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dbe18]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esp + 0x30]
xor ebp, ebp
mov dword [esp + 0x28], ebp
mov esi, ecx
push eax
mov ebx, 0x4bd884
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], ebp
call fcn.0040aed0
add esp, 4
mov dword [esp + 0x28], ebp
mov ebx, 1
mov dword [esp + 0x14], ebx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
lea eax, [esp + 0x18]
push eax
call fcn.0047eab0
add esp, 4
mov dword [esp + 0x28], ebx
mov ecx, dword [eax]
mov eax, ecx
mov dword [esp + 0x14], 3
lea edi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, bp
jne 0x47b750
sub eax, edi
sar eax, 1
push ecx
mov edx, esi
call fcn.0040adf0
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47b78f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x14], ebp
je 0x47b7ba
cmp dword [esi + 0x18], 8
jb 0x47b79f
mov edi, dword [esi + 4]
jmp 0x47b7a2
lea edi, [esi + 4]
cmp edi, ebp
je 0x47b7ba
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47b7ba
push edi
push ebp
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x47bd20
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4af131
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
mov eax, dword [0x4dbe18]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [esp + 0x44]
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], edx
mov dword [esp + 0x14], edi
mov byte [edi + 4], dl
mov dword [esp + 0x3c], edx
mov eax, dword [eax]
xor ecx, ecx
mov word [esp + 0x1c], cx
mov ecx, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edx
lea ebx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
cmp si, dx
jne 0x47bd86
sub ecx, ebx
sar ecx, 1
push ecx
lea esi, [esp + 0x1c]
call fcn.004052b0
push edi
mov ecx, esi
mov dword [esp + 0x40], 1
call fcn.0047bbb0
add esp, 4
cmp dword [esp + 0x30], 8
jb 0x47bdc6
mov edx, dword [esp + 0x1c]
push edx
call fcn.00480ff0
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x34
ret
Function at 0x47e640
Capabilities:
Check os version

Disassembly:
sub esp, 0x144
mov eax, dword [0x4dbe18]
xor eax, esp
mov dword [esp + 0x140], eax
mov eax, dword [0x4e0dcc]
test eax, eax
jl 0x47e67b
xor ecx, ecx
test eax, eax
setne cl
mov al, cl
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0048ac3c
add esp, 0x144
ret
xor eax, eax
push esi
push 0x11c
push eax
lea edx, [esp + 0x30]
push edx
mov dword [0x4e0dcc], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.0048f0a0
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExW]
add esp, 0xc
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0x11c
call esi
test eax, eax
jne 0x47e6eb
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 0x114
call esi
test eax, eax
je 0x47e73d
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x47e73d
lea edx, [esp + 4]
push edx
call eax
mov eax, dword [esp + 4]
cmp ax, 9
je 0x47e71d
cmp ax, 6
jne 0x47e73d
mov eax, 1
mov dword [0x4e0dcc], eax
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0048ac3c
add esp, 0x144
ret
mov ecx, dword [esp + 0x144]
pop esi
xor ecx, esp
xor al, al
call fcn.0048ac3c
add esp, 0x144
ret
Function at 0x47e8d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0xc
cmp byte [0x4e6650], 0
push esi
mov esi, eax
jne 0x47ea7d
push 0x4e6654
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp byte [0x4e6650], 0
je 0x47e907
push 0x4e6654
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
add esp, 0xc
ret
push edi
xor ecx, ecx
push ecx
push 0x28
push 0x4e6238
xor eax, eax
push ecx
mov dword [0x4e6440], 0
mov dword [0x4e664c], 0
mov word [0x4e6238], ax
mov word [0x4e6444], cx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x47e958
push str.:windows_
push 0x4e6238
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x47e9e2
xor edi, edi
call fcn.0047aec0
test al, al
jne 0x47ea71
test esi, esi
je 0x47ea71
push esi
push 0
push 0x400
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x47e9d1
test eax, eax
je 0x47e9d1
lea edx, [esp + 8]
push edx
push 8
push eax
mov dword [esp + 0x14], edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x47e9d1
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push 0x4e6238
push ecx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
je 0x47e9c6
mov edi, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea esi, [esp + 0x10]
call fcn.00401040
test edi, edi
je 0x47ea71
push 0x4e6238
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, 0x4e6238
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47e9f5
push 0x104
sub eax, edx
push 0x4e6444
sar eax, 1
push 0x4e6238
mov dword [0x4e6440], eax
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameW]
test eax, eax
je 0x47ea29
cmp eax, 0x104
jb 0x47ea31
xor eax, eax
mov word [0x4e6444], ax
push 0x4e6444
push 0x4e6238
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x47ea4e
xor ecx, ecx
mov word [0x4e6444], cx
mov eax, 0x4e6444
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47ea56
sub eax, edx
sar eax, 1
mov dword [0x4e664c], eax
mov byte [0x4e6650], 1
push 0x4e6654
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
pop esi
add esp, 0xc
ret
Function at 0x47efe0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b096d
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4dbe18]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
mov eax, dword [0x4dbe18]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov eax, dword [0x4e3954]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3954
call edx
add eax, 0x10
mov dword [esp + 8], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e]
mov dword [esp + 0x230], ebx
push ecx
mov word [esp + 0x20], ax
call fcn.0048f0a0
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x47f0e8
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47f070
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
call fcn.00403b30
push 0x208
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.0048f0a0
mov eax, dword [esp + 0x14]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0
push 0x4c5360
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
test eax, eax
je 0x47f0e8
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47f0c4
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x10]
call fcn.00403b30
lea eax, [esp + 8]
jmp 0x47f114
mov edx, dword [0x4e3954]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e3954
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov ebx, 1
mov byte [esp + 0x228], 1
lea eax, [esp + 0xc]
mov dword [esp + 0x10], ebx
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00406650
add eax, 0x10
or ebx, 2
add esp, 4
mov dword [edi], eax
mov dword [esp + 0x228], 0
test bl, 1
je 0x47f15a
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f15a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x228], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f185
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0048ac3c
add esp, 0x224
ret
Function at 0x480ee0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 0
push esi
je 0x480f12
cmp dword [eax + 0x18], 8
jb 0x480ef2
mov esi, dword [eax + 4]
jmp 0x480ef5
lea esi, [eax + 4]
test esi, esi
je 0x480f12
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x480f16
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x480f1a
xor eax, eax
pop esi
ret
test al, 0x10
je 0x480f12
mov eax, 1
pop esi
ret

Function at 0x48ac3c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4dbe18]
jne 0x48ac46
repz ret
jmp fcn.0049115b

Function at 0x4a18fa
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.00493b80
and dword [ebp - 4], 0
cmp dword [0x4e38b0], 0
mov ebx, eax
jne 0x4a19ab
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4a1a5c
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4a1a5c
push eax
call fcn.00493b0e
mov dword [esp], 0x4bc790
push edi
mov dword [0x4e38b0], eax
call esi
push eax
call fcn.00493b0e
mov dword [esp], 0x4bc77c
push edi
mov dword [0x4e38b4], eax
call esi
push eax
call fcn.00493b0e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4e38b8], eax
call esi
push eax
call fcn.00493b0e
pop ecx
mov dword [0x4e38c0], eax
test eax, eax
je 0x4a19ab
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00493b0e
pop ecx
mov dword [0x4e38bc], eax
mov eax, dword [0x4e38bc]
cmp eax, ebx
je 0x4a1a03
cmp dword [0x4e38c0], ebx
je 0x4a1a03
push eax
call fcn.00493b89
push dword [0x4e38c0]
mov esi, eax
call fcn.00493b89
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4a1a03
test edi, edi
je 0x4a1a03
call esi
test eax, eax
je 0x4a19fa
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4a19fa
test byte [ebp - 0xc], 1
jne 0x4a1a03
or dword [ebp + 0x10], 0x200000
jmp 0x4a1a3c
mov eax, dword [0x4e38b4]
cmp eax, ebx
je 0x4a1a3c
push eax
call fcn.00493b89
pop ecx
test eax, eax
je 0x4a1a3c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4a1a3c
mov eax, dword [0x4e38b8]
cmp eax, ebx
je 0x4a1a3c
push eax
call fcn.00493b89
pop ecx
test eax, eax
je 0x4a1a3c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4e38b0]
call fcn.00493b89
pop ecx
test eax, eax
je 0x4a1a5c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4a1a5e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret