joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ea790
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a4e25
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc4
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x1c]
xor esi, esi
mov eax, dword [edi]
push ecx
mov ecx, edi
mov dword [esp + 0x30], esi
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov ebx, 1
mov dword [esp + 0x2c], ebx
mov ecx, dword [edx]
mov dword [esp + 0xc], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x10], ecx
fld qword [esp + 0xc]
fsub qword [eax]
mov ecx, dword [edx + 8]
mov dword [esp + 0x14], ecx
mov edx, dword [edx + 0xc]
fstp qword [esp + 0xc]
mov dword [esp + 0x18], edx
fld qword [esp + 0x14]
fsub qword [eax + 8]
mov dword [esp + 0x40], 0x5b367c
mov dword [esp + 0x7c], vtable.CSerializable.0
fstp qword [esp + 0x14]
mov eax, dword [0x5b3680]
mov dword [esp + 0xd8], esi
mov dword [esp + eax + 0x40], vtable.CMatrix_double_.0
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + 4]
lea ecx, [esp + 0x40]
lea edx, [eax - 0x3c]
mov dword [esp + eax + 0x3c], edx
call fcn.004bd050
lea ecx, [esp + 0x40]
mov dword [esp + 0xd8], ebx
call fcn.004bd050
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x5c], ecx
lea esi, [edi + 8]
lea ecx, [esp + 0x90]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x18]
push esi
push ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], eax
call fcn.00440b10
lea ecx, [esi + 8]
sub eax, esi
mov edx, 6
mov esi, dword [eax + ecx]
mov dword [ecx], esi
mov esi, dword [eax + ecx + 4]
mov dword [ecx + 4], esi
add ecx, 8
dec edx
jne 0x4ea88e
mov eax, dword [edi + 0xb0]
mov ebx, dword [eax]
cmp ebx, eax
je 0x4ea94e
mov edx, dword [ebx + 8]
push 0
push 0x5ff880
push 0x5fd270
push 0
push edx
call fcn.0053ce5e
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4ea93e
mov eax, dword [esi]
lea ecx, [esp + 0x80]
push ecx
mov ecx, esi
call dword [eax + 4]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x20], ecx
fld qword [esp + 0x1c]
fadd qword [esp + 0xc]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
fstp qword [esp + 0x1c]
fld qword [esp + 0x24]
fadd qword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov edx, dword [esi]
fstp qword [esp + 0x24]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x3c], ecx
push eax
mov ecx, esi
call dword [edx + 8]
mov ebx, dword [ebx]
mov eax, dword [edi + 0xb0]
cmp ebx, eax
jne 0x4ea8b0
mov ecx, dword [esp + 0xd0]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4f6239
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a5c28
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x68]
mov ebx, dword [eax + 8]
mov al, byte [ebx + 4]
test al, al
je 0x4f625c
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov ecx, dword [0x6131b0]
mov dword [esp + 8], ecx
lea edx, [esp + 8]
mov ecx, esi
push edx
push 0x65
mov dword [esp + 0x2c], 0
call fcn.005742aa
mov ecx, eax
call fcn.00571b3c
lea eax, [esp + 8]
push eax
call fcn.004b17e0
add esp, 4
test al, al
je 0x4f62e0
mov ecx, dword [esi + 0x68]
mov eax, dword [ecx + 8]
mov ecx, esi
mov eax, dword [eax + 0x14]
push eax
push 0x65
call fcn.005742aa
mov ecx, eax
call fcn.00574541
push 0xffffffffffffffff
push 0x10
push 0x4e68
call fcn.0057e494
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.00575bd5
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov ecx, dword [esi + 0x60]
lea edx, [esp + 8]
push 0
push edx
call fcn.0048d340
mov ecx, eax
call fcn.00456420
test eax, eax
je 0x4f634a
cmp eax, ebx
je 0x4f634a
mov eax, dword [esi + 0x68]
mov ecx, esi
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x14]
push eax
push 0x65
call fcn.005742aa
mov ecx, eax
call fcn.00574541
push 0xffffffffffffffff
push 0x10
push 0x4e69
call fcn.0057e494
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.00575bd5
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov ecx, dword [esi + 0x68]
mov eax, dword [ecx + 8]
mov cl, byte [eax + 4]
test cl, cl
je 0x4f637b
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.00575bd5
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
push ebp
lea edx, [esp + 0xc]
push edi
push edx
lea ecx, [ebx + 0x14]
call fcn.00575d0e
lea edi, [ebx + 0x20]
mov ecx, edi
mov eax, dword [ecx]
mov dword [esp + 0x14], eax
mov ebp, dword [ecx + 4]
push ebp
push eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x24], edx
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x28], ecx
lea ecx, [esi + 0x70]
call fcn.004e8060
test al, al
jne 0x4f63c4
lea ecx, [esi + 0x70]
call fcn.004e7fb0
fstp qword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edx
lea ecx, [esi + 0xf0]
push eax
call fcn.004e8060
test al, al
jne 0x4f63ec
lea ecx, [esi + 0xf0]
call fcn.004e7fb0
fstp qword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [edi], ecx
mov dword [edi + 4], ebp
mov dword [edi + 8], edx
push 0x70
mov ecx, esi
mov dword [edi + 0xc], eax
call fcn.005742aa
mov ecx, dword [eax + 0x1c]
push 0
push 0
push 0xf0
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
xor edx, edx
lea ecx, [esp + 0x10]
test eax, eax
setne dl
mov dword [ebx + 0x30], edx
mov dword [esp + 0x2c], 0xffffffff
call fcn.00575bd5
mov ecx, dword [esp + 0x24]
pop edi
pop ebp
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x4f9740
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5a61b4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
push ebx
push 0x6a
mov dword [esp + 0x14], esi
call fcn.0058a257
mov dword [esi + 0x8c], vtable.CHelpTargetInterface.0
mov dword [esi], vtable.CHelpTarget_class_CPropertyPage_.0
mov dword [esi + 0x8c], vtable.CHelpTarget_class_CPropertyPage_.1.0
mov eax, dword [0x6131b0]
mov dword [esp + 0x28], ebx
mov dword [esi + 0x94], eax
mov cl, byte [esp + 0x30]
mov dl, byte [esp + 0x30]
lea edi, [esi + 0x98]
mov byte [esp + 0x28], 1
mov byte [edi], cl
mov ecx, edi
mov byte [edi + 1], dl
mov byte [edi + 8], bl
call fcn.004faa30
mov eax, 0x6193f0
mov byte [esp + 0x28], 2
test eax, eax
mov dword [esi], vtable.CCoverEdBitmapDlg.1.0
mov dword [esi + 0x8c], vtable.CCoverEdBitmapDlg.0
je 0x4f97dc
cmp dword [0x6193f4], ebx
jne 0x4f97e8
push 0x64
mov ecx, 0x6193f0
call fcn.004430f0
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
mov dword [esi + 0x90], ecx
push edx
push eax
mov ecx, edi
mov dword [esp + 0x18], 0x66
mov dword [esp + 0x1c], ebx
call fcn.004fa3b0
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
mov dword [ecx + 0x10], 1
push eax
mov ecx, edi
mov dword [esp + 0x18], 0x67
mov dword [esp + 0x1c], ebx
call fcn.004fa3b0
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
mov dword [ecx + 0x10], 2
push eax
mov ecx, edi
mov dword [esp + 0x18], 0x68
mov dword [esp + 0x1c], ebx
call fcn.004fa3b0
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
mov dword [ecx + 0x10], 3
mov ecx, dword [esp + 0x18]
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x5001a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a6a5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
mov ebp, ecx
xor eax, eax
mov ecx, dword [esp + 0x20]
push esi
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], eax
mov dword [ebp + 4], ecx
mov byte [ebp + 8], 1
mov dword [ebp], vtable.COperation.0
mov edx, dword [esp + 0x2c]
mov cl, byte [esp + 0x28]
lea ebx, [ebp + 0x10]
mov dword [ebp + 0xc], edx
mov dword [esp + 0x20], eax
mov byte [ebx], cl
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov edx, dword [esp + 0x34]
mov dword [ebp + 0x28], 0x5b367c
lea edi, [ebp + 0x30]
mov ecx, 0xc
lea esi, [edx + 8]
mov dword [ebp + 0x64], vtable.CSerializable.0
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x28]
mov edx, dword [ecx + 4]
mov dword [edx + ebp + 0x28], vtable.CMatrix_double_.0
mov ecx, dword [ebp + 0x28]
mov edx, dword [ecx + 4]
mov dword [edx + ebp + 0x24], eax
mov edi, dword [esp + 0x30]
mov byte [ebp + 0x68], al
mov dword [ebp], vtable.CMultiTransformOperation.0
mov ecx, edi
mov eax, dword [edi]
mov byte [esp + 0x20], 2
call dword [eax + 0x50]
mov edx, dword [eax + 8]
mov eax, dword [ebx + 4]
test eax, eax
mov dword [esp + 0x28], edx
jne 0x50025a
xor ecx, ecx
jmp 0x500262
mov ecx, dword [ebx + 0xc]
sub ecx, eax
sar ecx, 2
cmp ecx, edx
jae 0x5002ba
test edx, edx
mov eax, edx
jge 0x50026e
xor eax, eax
lea ecx, [eax*4]
push ecx
call fcn.00570bbc
mov edx, dword [ebx + 8]
add esp, 4
mov esi, eax
mov eax, dword [ebx + 4]
push esi
push edx
push eax
mov ecx, ebx
call fcn.00500930
mov eax, dword [ebx + 4]
push eax
mov dword [esp + 0x30], eax
call fcn.00570be5
mov ecx, dword [esp + 0x2c]
add esp, 4
lea edx, [esi + ecx*4]
mov ecx, ebx
mov dword [ebx + 0xc], edx
call fcn.00500910
lea eax, [esi + eax*4]
mov dword [ebx + 4], esi
mov dword [ebx + 8], eax
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x50]
mov eax, dword [eax + 4]
mov edx, dword [edi]
mov ecx, edi
mov dword [esp + 0x28], eax
call dword [edx + 0x50]
mov eax, dword [eax + 4]
mov esi, dword [eax]
mov eax, dword [esp + 0x28]
cmp esi, eax
je 0x5002f7
mov edx, dword [ebx + 8]
lea ecx, [esi + 8]
push ecx
push 1
push edx
mov ecx, ebx
call fcn.005009d0
mov esi, dword [esi]
mov eax, dword [esp + 0x28]
cmp esi, eax
jne 0x5002dc
mov eax, dword [edi + 0xf0]
test eax, eax
jne 0x50031b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x4c]
test eax, eax
je 0x500319
mov ecx, dword [edi + 0xb0]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
jmp 0x50031b
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword [ebp + 0x20], eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
Function at 0x506bd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a74b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov cl, byte [esp + 7]
xor eax, eax
mov dword [esp + 0x14], eax
mov byte [esi + 4], cl
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov ecx, esi
mov byte [esp + 0x14], 1
mov dword [esi + 0x24], eax
mov dword [esi], vtable.TextRenderer::CTemplate.0
mov dword [esi + 0x20], eax
mov dword [esi + 0x30], eax
call fcn.005070c0
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x50b650
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a7b32
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push 0xc
mov dword [esi + 8], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esp + 0x10], esi
mov byte [esi + 0x2c], al
call fcn.00570bbc
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], ebx
mov byte [esi + 0x68], bl
mov byte [esi + 0x69], bl
mov dword [esi + 0x70], 1
mov ecx, dword [0x6131b0]
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x78], ecx
mov dl, byte [esp + 0xf]
push 0xc
mov byte [esp + 0x20], 1
mov byte [esi + 0x94], dl
call fcn.00570bbc
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], ebx
mov al, byte [esp + 0x13]
push 0xc
mov byte [esp + 0x24], 2
mov byte [esi + 0xa0], al
call fcn.00570bbc
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0xa4], eax
mov dword [esi + 0xa8], ebx
mov cl, byte [esp + 0x17]
push 0xc
mov byte [esp + 0x28], 3
mov byte [esi + 0xac], cl
call fcn.00570bbc
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xd0], ebx
add esp, 0x10
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd4], ebx
mov dword [esi + 0xd8], ebx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xe0], ebx
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xf0], ebx
mov dword [esi + 0xf4], 0x3ff00000
mov dword [esi], vtable.CTextSurface.0
mov byte [esi + 0x90], 1
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50cab0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x5a7b98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov al, byte [esp + 0x20]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], al
call fcn.004318f0
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x28], 0
mov ecx, dword [ebx]
mov edx, dword [ecx - 8]
mov ecx, dword [esp + 0x18]
lea eax, [edx + edx + 2]
cmp eax, ecx
ja 0x50cb11
mov ecx, dword [0x5b21c4]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.0043f7e0
jmp 0x50cb62
mov edx, dword [0x5b21c4]
sub eax, ecx
mov esi, eax
sub edx, ecx
cmp edx, esi
ja 0x50cb2a
call fcn.00557890
mov ecx, dword [esp + 0x18]
test esi, esi
jbe 0x50cb62
lea edi, [ecx + esi]
push 0
push edi
lea ecx, [esp + 0x18]
call fcn.004316e0
test al, al
je 0x50cb62
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push esi
push 0
lea edx, [eax + ecx*2]
push edx
call fcn.00511160
add esp, 0xc
lea ecx, [esp + 0x10]
push edi
call fcn.00431640
mov eax, dword [ebx]
mov ecx, dword [esp + 0x14]
test ecx, ecx
mov edx, dword [eax - 8]
jne 0x50cb74
mov ecx, 0x5b21c8
inc edx
push edx
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x50cb91
mov eax, 0x5b21c8
push eax
call fcn.0053fa18
mov esi, eax
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, esi
jb 0x50cc12
mov edi, dword [0x5b21c4]
jae 0x50cbb1
call fcn.00557abc
lea ecx, [esp + 0x10]
call fcn.00431810
mov eax, dword [esp + 0x18]
mov ecx, eax
sub ecx, esi
cmp ecx, edi
jae 0x50cbc8
mov edi, ecx
test edi, edi
jbe 0x50cc61
mov ecx, dword [esp + 0x14]
sub eax, edi
sub eax, esi
push eax
lea eax, [edi + esi]
lea edx, [ecx + eax*2]
lea eax, [ecx + esi*2]
push edx
push eax
call fcn.00430c40
mov esi, dword [esp + 0x24]
add esp, 0xc
sub esi, edi
lea ecx, [esp + 0x10]
push 0
push esi
call fcn.004316e0
test al, al
je 0x50cc61
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], esi
mov word [ecx + esi*2], 0
jmp 0x50cc61
mov edx, dword [0x5b21c4]
sub esi, eax
sub edx, eax
cmp edx, esi
ja 0x50cc29
call fcn.00557890
mov eax, dword [esp + 0x18]
test esi, esi
jbe 0x50cc61
lea edi, [eax + esi]
push 0
push edi
lea ecx, [esp + 0x18]
call fcn.004316e0
test al, al
je 0x50cc61
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push esi
push 0
lea edx, [eax + ecx*2]
push edx
call fcn.00511160
add esp, 0xc
lea ecx, [esp + 0x10]
push edi
call fcn.00431640
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
push ecx
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, ebp
call fcn.0050ccc0
mov ecx, dword [esp + 0x14]
mov bl, al
test ecx, ecx
je 0x50cca4
mov al, byte [ecx - 1]
test al, al
je 0x50cc98
cmp al, 0xff
je 0x50cc98
dec al
mov byte [ecx - 1], al
jmp 0x50cca4
add ecx, 0xfffffffe
push ecx
call fcn.00570be5
add esp, 4
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x514560
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a8290
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov eax, dword [0x5b3680]
mov dword [esp + 4], ecx
mov dword [esp + 0x2c], 0x5b367c
mov dword [esp + 0x68], vtable.CSerializable.0
mov dword [esp + eax + 0x2c], vtable.CMatrix_double_.0
mov ecx, dword [esp + 0x2c]
push ebx
xor ebx, ebx
mov eax, dword [ecx + 4]
push esi
push edi
mov dword [esp + 0x14], ebx
lea edx, [eax - 0x3c]
mov dword [esp + eax + 0x34], edx
xor edx, edx
movsx ecx, dx
xor eax, eax
lea ecx, [ecx + ecx*2]
movsx esi, ax
add esi, ecx
inc eax
cmp eax, 3
mov dword [esp + esi*8 + 0x40], ebx
mov dword [esp + esi*8 + 0x44], ebx
jl 0x5145c0
inc edx
cmp edx, 2
jl 0x5145b8
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0x3ff00000
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0x3ff00000
lea eax, [esp + 0x38]
mov dword [esp + 0x80], ebx
test eax, eax
je 0x514613
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + 4]
lea eax, [esp + edx + 0x38]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push eax
push esi
mov ecx, edi
call fcn.00465320
mov eax, dword [esp + 0x10]
mov edx, dword [eax - 0xe0]
lea ecx, [eax - 0xe0]
lea eax, [esp + 0x38]
push eax
call dword [edx + 0x3c]
mov ecx, dword [0x5b97bc]
mov dword [esp + 0x1c], 0x5b97b8
mov dword [esp + 0x34], vtable.CSerializable.0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], vtable.CPointArray.1.0
mov dword [esp + ecx + 0x1c], vtable.CPointArray.0
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
lea ecx, [eax - 0x14]
mov dword [esp + eax + 0x18], ecx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], vtable.CPolyDrawPointArray.1.0
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x1c], vtable.CPolyDrawPointArray.0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 4]
lea edx, [eax - 0x18]
mov dword [esp + eax + 0x18], edx
lea eax, [esp + 0x18]
mov byte [esp + 0x80], 1
test eax, eax
je 0x5146be
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 4]
lea eax, [esp + edx + 0x1c]
push eax
push esi
mov ecx, edi
call fcn.00465320
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
add ecx, 0xffffffc8
call fcn.005142e0
mov eax, dword [esp + 0x10]
mov edx, dword [eax - 0xdc]
mov ecx, dword [edx + 0x10]
lea edx, [ecx + eax - 0xd4]
mov ecx, edi
push edx
push esi
call fcn.00465320
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], bl
call fcn.00514170
mov ecx, dword [esp + 0x78]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x525d86
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
push edi
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
cmp ebx, edi
je 0x525ddd
push ebx
call fcn.0053e13b
mov esi, eax
pop ecx
cmp esi, edi
mov dword [ebp - 8], esi
je 0x525ddd
push esi
push ebx
push edi
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x525dd6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x5fcd80
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x525deb
push esi
call fcn.0053d6fa
pop ecx
mov ecx, dword [ebp + 8]
push edi
call fcn.00525e35
mov eax, dword [ebp + 8]
jmp 0x525e30
mov eax, dword [ebp - 4]
lea edi, [ebp - 0x18]
push dword [ebp - 8]
movzx esi, word [eax + 0x14]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
movzx ebx, word [eax + 0x10]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
shr ecx, 0x10
shr edx, 0x10
stosw word es:[edi], ax
mov word [ebp - 0x18], dx
mov word [ebp - 0x16], bx
mov word [ebp - 0x14], cx
mov word [ebp - 0x12], si
call fcn.0053d6fa
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x18]
mov edi, eax
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x52d33e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x52d359
xor eax, eax
pop ebp
ret
push esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ebp
ret
Function at 0x52d7a1
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x5a9510
call fcn.00540fdc
sub esp, 0x64
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
cmp ebx, edi
je 0x52d93c
cmp dword [ebx + 8], edi
je 0x52d93c
mov al, byte [ebp + 0xf]
and byte [ebp + 0xb], 0
and byte [ebp - 0xd], 0
push esi
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x28], al
call fcn.00406080
mov esi, str.SOFTWARE_ahead_
push esi
call fcn.00540f60
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.0042bea0
push dword [ebx + 8]
lea eax, [ebp - 0x28]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004573c0
push str.Info
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 1
push eax
call fcn.004573c0
mov eax, dword [eax + 4]
add esp, 0x18
cmp eax, edi
jne 0x52d82c
mov eax, 0x5af328
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push edi
push eax
mov al, byte [ebp + 0xc]
neg al
sbb eax, eax
add eax, reloc.OLEAUT32.dll_SysReAllocString
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
push 1
neg ebx
pop esi
lea ecx, [ebp - 0x38]
sbb bl, bl
push esi
inc bl
call fcn.00406080
and byte [ebp - 4], 0
push esi
lea ecx, [ebp - 0x48]
call fcn.00406080
or dword [ebp - 4], 0xffffffff
push esi
lea ecx, [ebp - 0x28]
call fcn.00406080
test bl, bl
je 0x52d937
mov al, byte [0x61810c]
push 9
mov byte [ebp - 0x70], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x6f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x27
stosb byte es:[edi], al
pop ebx
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x70]
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x18]
mov dword [ebp + 0xc], ebx
push eax
push 0
push str.User
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x52d8dd
cmp byte [ebp - 0x70], al
je 0x52d8dd
lea eax, [ebp - 0x70]
push eax
call fcn.00540f60
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0042bea0
mov byte [ebp + 0xb], 1
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.Company
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x52d91c
cmp byte [ebp - 0x70], al
je 0x52d91c
lea eax, [ebp - 0x70]
push eax
call fcn.00540f60
pop ecx
mov ecx, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0042bea0
mov byte [ebp - 0xd], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp + 0xb], 0
je 0x52d935
cmp byte [ebp - 0xd], 0
je 0x52d935
mov eax, esi
jmp 0x52d939
xor edi, edi
xor eax, eax
pop esi
jmp 0x52d93e
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret