joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403cf0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455558
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [section..data]
push esi
push edi
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], 0
call fcn.00403a90
mov edi, dword [ebp + 0xc]
mov ecx, 1
mov eax, dword [edi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x403d58
push 0x104
mov ecx, edi
call fcn.00401740
mov esi, dword [ebp - 0x10]
push esi
push 0x104
push dword [edi]
push 0x45bf7c
push str.AppInstallDate
push str.AppConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [edi]
test eax, eax
jne 0x403d82
xor ecx, ecx
jmp 0x403d98
push dword [eax - 8]
push eax
call fcn.0043e3ad
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x403e19
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x403e19
mov dword [eax - 0xc], ecx
mov eax, dword [edi]
xor edx, edx
mov word [eax + ecx*2], dx
mov ecx, dword [edi]
xor eax, eax
xorps xmm0, xmm0
lea edx, [ebp - 0x20]
mov word [ebp - 0x20], ax
movq qword [ebp - 0x1e], xmm0
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
call fcn.00402c60
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x20]
push eax
push str._04d_02d_02d
push edi
call fcn.004012e0
add esi, 0xfffffff0
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403e07
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.004018e0
int3
Function at 0x403e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454210
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
mov eax, dword [section..data]
push ebx
push esi
push edi
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push 0xd
push str.Software_bfAppStoreConfigAppActiveAA__03d__d
push eax
call fcn.004012e0
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0xa8], ax
lea eax, [ebp - 0xa6]
push eax
call fcn.0043f760
mov edi, dword [ebp - 0x10]
add esp, 0x1c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x24]
push eax
push str.LastActiveDate
push edi
push closesocket
mov dword [ebp - 0x28], 0x7e
mov dword [ebp - 0x24], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
or ecx, 0xffffffff
test eax, eax
je 0x403ed8
xor ebx, ebx
jmp 0x403f7c
xor eax, eax
mov word [ebp - 0x94], ax
mov word [ebp - 0x20], ax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x1e], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 1
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x20]
push eax
lea eax, [ebp + 0xc]
push str._04d__02d__02d
push eax
call fcn.004012e0
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0xa8]
push eax
push esi
call fcn.0043cb2c
xor ebx, ebx
add esp, 0x28
test eax, eax
sete bl
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403f79
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403f9a
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x403fb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454210
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [section..data]
push esi
push edi
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push 0xd
push str.Software_bfAppStoreConfigAppActiveAA__03d__d
push eax
call fcn.004012e0
xor eax, eax
add esp, 0x10
mov word [ebp - 0x20], ax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x1e], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 1
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x20]
push eax
lea eax, [ebp + 0xc]
push str._04d__02d__02d__02d:_02d:_02d
push eax
call fcn.004012e0
mov edi, dword [ebp + 0xc]
mov eax, edi
add esp, 0x20
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404070
mov esi, dword [ebp - 0x10]
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edi
push 1
push str.LastActiveDate
push esi
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4040be
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4040dc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4040f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4541d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
mov eax, dword [section..data]
push ebx
push esi
push edi
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push 0xd
push str.Software_bfAppStoreConfigAppActiveAA__03d__d
push eax
call fcn.004012e0
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0xb0], ax
lea eax, [ebp - 0xae]
push eax
call fcn.0043f760
mov esi, dword [ebp - 0x14]
add esp, 0x1c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x2c]
push eax
push str.LastActiveDate
push esi
push closesocket
mov dword [ebp - 0x28], 0x7e
mov dword [ebp - 0x2c], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
or ecx, 0xffffffff
test eax, eax
je 0x404198
xor ebx, ebx
jmp 0x40425d
xor eax, eax
mov word [ebp - 0x24], ax
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x22], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 1
movzx eax, word [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1c]
push eax
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x22]
push eax
movzx eax, word [ebp - 0x24]
push eax
lea eax, [ebp + 0xc]
push str._04d__02d__02d__02d:_02d:_02d
push eax
call fcn.004012e0
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0xb0]
mov ecx, edi
mov dword [ebp - 0x10], 0
call fcn.00402d20
add esp, 0x24
cmp dword [ebp - 0x10], 0
je 0x40423a
test edx, edx
jl 0x40423a
jg 0x404228
test eax, eax
je 0x40423a
push 0
push 0x15180
push edx
push eax
call fcn.00445950
mov ebx, eax
jmp 0x40423c
xor ebx, ebx
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40425a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40427b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x404290
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [esp + 0x20], ax
lea eax, [esp + 0x22]
push eax
call fcn.0043f760
add esp, 0xc
lea eax, [esp + 0x18]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...BFAppStore.ver
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
push 0x80
push 3
push 0
push 3
push closesocket
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40436d
push 0
lea eax, [esp + 0x18]
push eax
push 8
lea eax, [esp + 0x14]
push eax
xorps xmm0, xmm0
push edi
mov dword [esp + 0x28], 0
movlpd qword [esp + 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40436d
mov ecx, dword [esp + 8]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
mov ecx, dword [esp + 0x14]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
push str._d._02d._04d._04d
push 0xffffffffffffffff
push 0x104
push dword [ebp + 8]
call fcn.0043d649
add esp, 0x20
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x404c50
Capabilities:
Delete directory
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x454778
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, dword [0x472394]
push edi
mov al, byte [esi + 0x50d]
test al, al
je 0x404dbf
mov eax, dword [esi + 0xc]
mov dword [esi + 0x4f0], 0
mov dword [esi + 0x4f4], 0
cmp dword [eax - 0xc], 0
je 0x404dd1
mov ecx, esi
call fcn.0040ba70
test eax, eax
je 0x404dd1
cmp eax, 3
je 0x404dd1
push str.bfAppStore.exe
call fcn.0040b250
push str.bfAppWindow.exe
call fcn.0040b250
push 0
push str.CBrowserMainWnd
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
je 0x404cfc
push 0
push 0x64
push 0
push 0
push 0xf060
push 0x112
push eax
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
lea ecx, [ebp - 0x30]
call fcn.00402de0
push ecx
push 0xa
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.00402fd0
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.00402ee0
call fcn.0040d6f0
call fcn.0040beb0
mov ecx, esi
call fcn.0040bfe0
mov ecx, esi
call fcn.0040c210
mov edi, dword [esi + 0xc]
test edi, edi
je 0x404d62
push ecx
push edi
mov ecx, esi
call fcn.0040c9e0
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x404d62
push 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea edi, [esi + 0x10]
test edi, edi
je 0x404d87
push ecx
push edi
mov ecx, esi
call fcn.0040c9e0
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x404d87
push 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
call fcn.0040d490
call fcn.0040c770
call fcn.0040d340
test eax, eax
je 0x404dd1
push 0
push 0x7103
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x514]
test eax, eax
je 0x404dd1
push eax
mov ecx, esi
call fcn.0040b0e0
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405130
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x405151
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret
Function at 0x4051a0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x190
push esi
push edi
mov edi, dword [ebp + 8]
push 0x46fb88
mov dword [0x472398], edi
mov dword [0x4723c8], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
push 0x18e
push eax
mov word [esp + 0x10], ax
lea eax, [esp + 0x12]
push eax
call fcn.0043f760
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.00405130
push 0x534
call fcn.0043df34
add esp, 4
test eax, eax
je 0x405211
mov ecx, eax
call fcn.0040a8c0
jmp 0x405213
xor eax, eax
push dword [ebp + 0x10]
mov dword [0x472394], eax
call fcn.0040d8a0
call fcn.0040de40
test al, al
je 0x405292
mov eax, dword [0x472394]
cmp byte [eax + 0x50c], 0
jne 0x40528d
push 0x20
call fcn.0043df34
mov esi, eax
add esp, 4
test esi, esi
je 0x405292
push ecx
push dword [ebp + 0x10]
mov dword [esi + 0xc], 1
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
push edi
mov ecx, esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi], vtable.CUnistUIThread.0
call fcn.00417790
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x405292
call fcn.00404c50
mov esi, dword [0x472394]
test esi, esi
je 0x4052ac
mov ecx, esi
call fcn.0040a9d0
push esi
call fcn.0043c9cf
add esp, 4
mov dword [0x472394], 0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [0x4723cc]
test eax, eax
je 0x4052d6
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4723cc], 0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x407280
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4543d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
movq xmm0, qword [str.__0_9__]
mov eax, dword [0x45cec8]
movq qword [esp + 0xc], xmm0
movq xmm0, qword [0x45cec0]
mov dword [esp + 0x1c], eax
mov ax, word [0x45cecc]
push esi
movq qword [esp + 0x18], xmm0
mov word [esp + 0x24], ax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 1
mov dword [esp + 0x28], 0
push ecx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x84], 0
call fcn.00408100
test eax, eax
je 0x407334
xor esi, esi
jmp 0x40740b
push ecx
lea ecx, [esp + 0x4c]
call fcn.004088f0
mov esi, dword [ebp + 8]
push ecx
lea eax, [esp + 0x4c]
push eax
push esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x88], 1
call fcn.004081f0
test eax, eax
je 0x4073d3
cmp dword [esp + 0x48], 0
jbe 0x4073d3
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call fcn.004088a0
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
sub eax, ecx
push section..data
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00404680
push esi
lea ecx, [esp + 0x10]
call fcn.00407f60
mov edx, dword [esp + 0xc]
neg eax
sbb esi, esi
add edx, 0xfffffff0
inc esi
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4073d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4073d5
xor esi, esi
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4073e6
push eax
call fcn.0043e24a
add esp, 4
push dword [esp + 0x58]
call fcn.0043ca9f
push dword [esp + 0x58]
mov dword [esp + 0x60], 0
call fcn.0043ca9f
add esp, 8
mov dword [esp + 0x54], 0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40741c
push eax
call fcn.0043e24a
add esp, 4
mov ecx, dword [esp + 0x74]
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40a5a0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x455558
push eax
mov dword fs:[0], esp
sub esp, 0x274
push esi
mov esi, ecx
cmp word [esi], 0
je 0x40a6cf
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x280], ax
lea eax, [ebp - 0x27e]
push eax
mov dword [ebp - 0x18], 0x100
call fcn.0043f760
mov eax, dword [section..data]
add esp, 0xc
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x40a62c
cmp word [eax], 0
je 0x40a62c
push esi
push eax
lea eax, [ebp - 0x10]
push 0x45be14
push eax
call fcn.004012e0
add esp, 0x10
jmp 0x40a63e
push esi
lea eax, [ebp - 0x10]
push 0x45be0c
push eax
call fcn.004012e0
add esp, 0xc
push 0x63
lea eax, [ebp - 0x7f]
push 0
push eax
mov byte [ebp - 0x80], 0
call fcn.0043f760
mov esi, dword [ebp - 0x10]
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push 0
mov dword [ebp - 0x14], 0x64
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x40a6ae
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp + 8], 0
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
mov eax, dword [ebp + 8]
test eax, eax
je 0x40a6ae
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00401870
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a6cf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x40a6e0
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 5
push 0xffffffffffffffff
push 0
mov esi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call edi
mov ebx, dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
test eax, eax
je 0x40a753
mov edx, dword [ebp - 4]
test edx, edx
jne 0x40a724
xor ecx, ecx
jmp 0x40a745
mov ecx, edx
lea ebx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a730
sub ecx, ebx
mov ebx, dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.004017b0
push dword [ebp - 4]
call ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 7
push 0xffffffffffffffff
push 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call edi
test eax, eax
je 0x40a7a3
mov edx, dword [ebp - 0xc]
test edx, edx
jne 0x40a780
xor ecx, ecx
jmp 0x40a794
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a785
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 4]
call fcn.004017b0
push dword [ebp - 0xc]
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a7b0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x454998
push eax
mov dword fs:[0], esp
sub esp, 0x208
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40a8a2
cmp word [esi], 0
je 0x40a8a2
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a8a2
push ebx
push 1
push 0x25
lea eax, [ebp - 0x214]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.regsvr32.exe
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push esi
push 0x45d8cc
lea eax, [ebp + 8]
push str.__s__s_
push eax
mov dword [ebp - 4], 0
call fcn.004012e0
add esp, 0x10
lea ecx, [ebp + 8]
push 0x45d8e4
call fcn.00407f10
mov esi, dword [ebp + 8]
push ecx
push 0xffffffffffffffff
mov edx, esi
lea ecx, [ebp - 0x214]
call fcn.0040f020
test eax, eax
setne bl
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a890
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
pop ebx
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
xor al, al
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x40a9d0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
mov edi, ecx
push dword [edi + 0x530]
mov dword [edi + 0x4f0], 0
mov dword [edi + 0x4f4], 0
call esi
push dword [edi + 0x52c]
call esi
push dword [edi + 0x528]
call esi
push dword [edi + 0x524]
call esi
mov eax, dword [edi + 0x500]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40aa21
push eax
call esi
mov eax, dword [edi + 0x504]
test eax, eax
je 0x40aa2e
push eax
call esi
cmp dword [edi + 0x4f8], 0
je 0x40aa45
push 0
push dword [edi + 0x4fc]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [edi + 0x500], 0
mov dword [edi + 0x504], 0
mov dword [edi + 0x4f8], 0
mov dword [edi + 0x4fc], 0
mov edx, dword [edi + 0xc]
sub edx, 0x10
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40aa8a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi + 4], 0
mov dword [edi + 8], 0
je 0x40aa9e
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x40ab10
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push esi
mov esi, ecx
lea ecx, [esi + 0xc]
call fcn.0040ac20
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0043f760
add esp, 0xc
lea eax, [ebp - 0x210]
push 1
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.bfAppStore_
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40ab7d
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x210]
lea edx, [esi + 0x10]
mov eax, ecx
sub edx, eax
lea ebx, [ebx]
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x40ab90
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
call fcn.0043f760
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 4]
push eax
push str.AppStoreMarketVer
push str.Software_bfAppStore
push closesocket
mov dword [ebp - 8], 0x206
mov dword [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea ecx, [ebp - 0x418]
lea edx, [esi + 0x420]
mov eax, ecx
sub edx, eax
nop
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x40ac00
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret