joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49fd9d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49fdd5
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.0049ddc1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049dd99
jmp 0x49fde1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a1612
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 0x4a1654
call fcn.004a7b4e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a1654
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a164b
xor eax, eax
jmp 0x4a165c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a1662
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a807e
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 0x4a80ac
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a80ca
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a7fe4
jmp 0x4a80ca
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a80ca
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a7fe4
test edi, edi
mov eax, edi
jne 0x4a80b4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4aa8f5
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x4aa91d
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x4aa92e
push 2
call edi
test ax, ax
jge 0x4aa92e
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0049f3d2
cmp dword [esi + 0x30], ebx
jne 0x4aaa08
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0049f3d2
cmp eax, dword [esp + 0x34]
jne 0x4aaa08
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4aa9a4
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x4aa9e9
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x4aaa08
cmp eax, 0x205
je 0x4aaa08
cmp eax, 0x201
je 0x4aaa08
cmp eax, 0x204
je 0x4aaa08
cmp eax, ebx
jne 0x4aa9cf
cmp dword [esp + 0x1c], 0x1b
je 0x4aaa08
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x518e0c]
jbe 0x4aa9fe
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4aa961
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x452482
Capabilities:
Check for software breakpoints

Disassembly:
push eax
call 0x452488
pop ebx
sub ebx, 0x1a2
mov ecx, 0x152e6
sub ebx, ecx
mov esi, ebx
sub ebx, 0x3c000
mov edi, ebx
sub ebx, 0x1000
push edi
push ecx
push esi
call fcn.00452337
add esp, 0xc
mov ebp, dword [ebx + 0xc0]
lea ebp, [ebx + ebp]
dec ebp
mov cl, byte [ebp]
cmp cl, 0xcc
je 0x4524ba
sub ebp, 9
mov edx, ebx
sub edx, dword [ebx + 0x74]
add dword [ebp], edx
add ebp, 6
add dword [ebp], edx
lea edx, [eax - 4]
sub edx, dword [edx]
mov esi, ebx
add esi, dword [edx + 0x10c]
mov edi, dword [edx + 0x104]
mov ecx, 0x1eb7a
call fcn.00452458
mov esi, dword [edx + 0x80]
push edx
add esi, ebx
mov eax, dword [esi + 0xc]
or eax, eax
je 0x452544
add eax, ebx
push eax
call sub.kernel32.dll_LoadLibraryA
mov ebp, eax
mov ecx, dword [esi]
add ecx, ebx
mov edi, dword [esi + 0x10]
add edi, ebx
mov eax, dword [ecx]
or eax, eax
je 0x45253f
pushal
test eax, 0x80000000
je 0x452529
and eax, 0x7fffffff
jmp 0x45252d
lea eax, [ebx + eax + 2]
push eax
push ebp
call sub.kernel32.dll_GetProcAddress
mov dword [edi], eax
popal
add edi, 4
add ecx, 4
jmp 0x452514
add esi, 0x14
jmp 0x4524fa
pop edx
mov ebp, ebx
sub ebp, dword [edx + 0x34]
mov esi, dword [edx + 0xa0]
add esi, ebx
cmp esi, ebx
je 0x45258e
push edx
mov eax, dword [esi + 4]
or eax, eax
je 0x45258d
mov ecx, dword [esi]
add ecx, ebx
add esi, 8
sub eax, 8
shr eax, 1
mov edx, esi
lea edi, [eax + esi]
lea esi, [eax + edi]
xor eax, eax
add al, byte [edx]
adc ah, byte [edi]
test ah, 0x30
je 0x452585
push eax
and ah, 0xf
add dword [ecx + eax], ebp
pop eax
inc edx
inc edi
cmp edi, esi
jb 0x452574
jmp 0x452557
pop edx
pop eax
cmp eax, 0xd0dec0de
je 0x45259b
add ebx, dword [edx + 0x28]
jmp ebx
ret 0xc
Function at 0x401000
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40599b
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x408034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401045
xor eax, eax
jmp 0x401195
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push 0x406314
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str..bflnk
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
push 0x24c
lea eax, [ebp - 0x464]
push 0
push eax
mov dword [ebp - 0x468], 0
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40103e
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea esp, [esp]
cmp word [ebp - 0x43c], 0x2e
je 0x401173
test byte [ebp - 0x468], 0x16
jne 0x401173
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x46c]
call fcn.004011c0
lea eax, [ebp - 0x46c]
lea ecx, [ebx + 4]
push eax
mov dword [ebp - 4], 0
call fcn.00401290
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x46c]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401173
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x468]
push eax
push esi
call edi
test eax, eax
jne 0x4010f0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebx + 8]
sub eax, dword [ebx + 4]
sar eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404ecc
mov esp, ebp
pop ebp
ret 8
Function at 0x401b20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401b39
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401b74
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401b70
lea ebx, [ebx]
cmp esi, edx
jae 0x401b74
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x401b60
cmp esi, edx
jb 0x401b7b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402040
Capabilities:
Check if file exists
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa44
mov eax, dword [0x408034]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x40206c
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404ecc
mov esp, ebp
pop ebp
ret
call fcn.00401f80
test eax, eax
je 0x40205b
push str.CrashSendToCrashServer
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xa44], eax
test eax, eax
je 0x40205b
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR110.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0xc
push dword [edi]
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jl 0x4021ea
push 0x406450
lea eax, [ebp + eax*2 - 0x212]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4021ea
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4021ea
push 0
lea eax, [ebp - 0x210]
push eax
push 4
lea eax, [ebp - 0x214]
push eax
push esi
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x214], 0x82c
jne 0x4021e3
push 0
lea eax, [ebp - 0x210]
push eax
push 0x82c
lea eax, [ebp - 0xa40]
push eax
push esi
mov dword [ebp - 0x210], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x210], 0x82c
jne 0x4021e3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp word [ebp - 0x314], 0
jne 0x4021bf
push 1
push 0x7f
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.API.dll_Ordinal_19]
push dword [edi]
lea eax, [ebp - 0xa40]
push eax
call dword [ebp - 0xa44]
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404ecc
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop edi
call fcn.00404ecc
mov esp, ebp
pop ebp
ret
Function at 0x4023f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405a96
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x408034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x408494]
mov dword [ebp - 0x244], eax
mov dword [0x40849c], 1
test eax, eax
je 0x40261d
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor edi, edi
mov dword [ebp - 0x234], edi
mov dword [ebp - method.CFileEnum.virtual_0], vtable.CFileEnum.0
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x220], edi
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], edi
call section..text
mov ebx, dword [ebp - 0x224]
mov dword [ebp - 0x240], eax
test eax, eax
je 0x4025c1
xor ebx, ebx
test eax, eax
je 0x4025bb
mov eax, dword [ebp - 0x224]
sub eax, dword [ebp - 0x228]
sar eax, 2
mov dword [ebp - 0x23c], eax
lea esp, [esp]
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x230], esi
mov byte [ebp - 4], 1
cmp ebx, dword [ebp - 0x23c]
jae 0x402590
mov eax, dword [ebp - 0x228]
lea edi, [esi - 0x10]
mov edx, dword [eax + ebx*4]
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x40256d
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x402558
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x402558
call fcn.004014c0
mov dword [ebp - 0x238], eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x402547
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x238]
add esi, 0x10
mov dword [ebp - 0x230], esi
jmp 0x40256d
push dword [edx - 0xc]
lea ecx, [ebp - 0x230]
push edx
call fcn.00401400
mov esi, dword [ebp - 0x230]
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x244]
call fcn.00402640
mov edi, dword [ebp - 0x234]
test eax, eax
je 0x402590
inc edi
mov dword [ebp - 0x234], edi
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 0x4025ae
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
inc ebx
cmp ebx, dword [ebp - 0x240]
jb 0x4024e0
mov ebx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x228]
mov esi, eax
cmp eax, ebx
je 0x4025f9
lea ecx, [ecx]
mov edx, dword [esi]
sub edx, 0x10
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4025ec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, ebx
jne 0x4025d0
mov eax, dword [ebp - 0x228]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x224], eax
mov dword [ebp - method.CFileEnum.virtual_0], vtable.CFileEnum.0
call fcn.00403200
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00404ecc
mov esp, ebp
pop ebp
ret 4
Function at 0x402740
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x408034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402770
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404ecc
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push esi
push 0x104
push eax
push 0x40667c
push str.AppID
push str.LinkInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
test esi, esi
je 0x402804
movq xmm0, qword [0x4062b8]
lea eax, [ebp - 0x220]
push eax
movq qword [ebp - 0x220], xmm0
movq xmm0, qword [0x4062c0]
lea eax, [ebp - 0x210]
push eax
xor esi, esi
movq qword [ebp - 0x218], xmm0
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
js 0x402804
mov esi, dword [ebp - 0x220]
cmp esi, 0x2710
jbe 0x402804
add esi, 0xffffd8f0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00404ecc
mov esp, ebp
pop ebp
ret

Function at 0x4029b0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x408034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push esi
mov edi, edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402a8a
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push esi
push 0x104
push eax
push 0x40667c
push 0x4064a4
push str.LinkInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x402a8a
xor eax, eax
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x210]
mov word [ebp - 0x218], ax
mov dword [ebp - 0x216], eax
mov word [ebp - 0x212], ax
call fcn.00402820
test al, al
je 0x402a8a
movzx eax, word [ebp - 0x212]
push eax
movzx eax, word [ebp - 0x214]
push eax
movzx eax, word [ebp - 0x216]
push eax
movzx eax, word [ebp - 0x218]
push eax
push str._d._02d._04d._04d
push edi
call fcn.00403260
add esp, 0x18
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404ecc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00404ecc
mov esp, ebp
pop ebp
ret
Function at 0x402aa0
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405b0b
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x408034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x448], edx
mov esi, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402c8c
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push esi
push 0x104
push eax
push 0x40667c
push str.AppID
push str.LinkInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x402c8c
movq xmm0, qword [0x4062b8]
lea eax, [ebp - 0x440]
push eax
movq qword [ebp - 0x440], xmm0
movq xmm0, qword [0x4062c0]
lea eax, [ebp - 0x218]
push eax
movq qword [ebp - 0x438], xmm0
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
js 0x402c8c
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x444]
mov dword [ebp - 0x444], 0
call fcn.004033d0
push 0
push 0x23
lea eax, [ebp - 0x218]
push eax
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.bfAppStoreApp
lea eax, [ebp - 0x218]
push eax
call edi
mov esi, dword [ebp - 0x444]
push esi
lea eax, [ebp - 0x218]
push eax
call edi
push str.AppConfig.ini
lea eax, [ebp - 0x218]
push eax
call edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
lea eax, [ebp - 0x420]
push eax
push 0x40667c
push str.AppInstallDate
push str.AppConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x402c85
xor eax, eax
xorps xmm0, xmm0
lea edx, [ebp - 0x430]
lea ecx, [ebp - 0x420]
mov word [ebp - 0x430], ax
movq qword [ebp - 0x42e], xmm0
mov dword [ebp - 0x426], eax
mov word [ebp - 0x422], ax
call fcn.00402240
movzx eax, word [ebp - 0x42a]
push eax
movzx eax, word [ebp - 0x42e]
push eax
movzx eax, word [ebp - 0x430]
push eax
push str._04d_02d_02d
push dword [ebp - 0x448]
call fcn.00403260
add esp, 0x14
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, 1
jmp 0x402c8e
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404ecc
mov esp, ebp
pop ebp
ret
Function at 0x402cb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405b96
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x408034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xb0], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xb0]
push 0x11
push str.Software_bfAppStoreConfigAppActiveAA__03d__d
push eax
mov dword [ebp - 4], 0
call fcn.00403260
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x90], ax
lea eax, [ebp - 0x8e]
push eax
call sub.MSVCR110.dll_memset
mov edi, dword [ebp - 0xb0]
add esp, 0x1c
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0xa8]
push eax
push str.LastActiveDate
push edi
push reloc.crt.dll_Ordinal_1
mov dword [ebp - 0xa8], 1
mov dword [ebp - 0xa4], 0x76
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x402d98
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402d91
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x402e83
xor eax, eax
mov word [ebp - 0x7c], ax
mov word [ebp - 0xa0], ax
mov dword [ebp - 0x96], eax
mov word [ebp - 0x92], ax
lea eax, [ebp - 0xa0]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x9e], 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 - 0xac], eax
mov byte [ebp - 4], 1
movzx eax, word [ebp - 0x94]
push eax
movzx eax, word [ebp - 0x96]
push eax
movzx eax, word [ebp - 0x98]
push eax
movzx eax, word [ebp - 0x9a]
push eax
movzx eax, word [ebp - 0x9e]
push eax
movzx eax, word [ebp - 0xa0]
push eax
lea eax, [ebp - 0xac]
push str._04d__02d__02d
push eax
call fcn.00403260
mov esi, dword [ebp - 0xac]
lea eax, [ebp - 0x90]
push eax
push esi
call dword [sym.imp.MSVCR110.dll__wcsicmp]
xor ebx, ebx
add esp, 0x28
test eax, eax
lea edx, [esi - 0x10]
sete bl
or esi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x402e63
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x402e81
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404ecc
mov esp, ebp
pop ebp
ret 8
Function at 0x402eb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405bd0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x408034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push 0x11
push str.Software_bfAppStoreConfigAppActiveAA__03d__d
push eax
mov dword [ebp - 4], 0
call fcn.00403260
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 - 0x28], 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 - 0x28]
push str._04d__02d__02d__02d:_02d:_02d
push eax
call fcn.00403260
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
add esp, 0x20
test esi, esi
je 0x402f97
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push esi
push 1
push str.LastActiveDate
push edi
push reloc.crt.dll_Ordinal_1
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x402fb7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x402fd5
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404ecc
mov esp, ebp
pop ebp
ret 8