joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406b60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa8cd
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x5543c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov eax, dword [ebp + 0x10]
mov ecx, esi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406bb0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00404480
mov ecx, edi
mov dword [ebp - 4], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406bd0
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00402880
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x64], 0x3c
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x64]
push eax
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
mov dword [ebp - 0x60], 0x440
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x406c70
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406c66
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406c8d
push ecx
push edx
call fcn.004cd29e
add esp, 8
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.004cd2ac
mov esp, ebp
pop ebp
ret 0xc
call fcn.004d2fbf
int3
Function at 0x406e60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa94d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5543c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.004cd26e
mov edi, eax
add esp, 4
test edi, edi
je 0x406f04
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0041d80a
add esp, 4
mov dword [edi + 4], eax
jmp 0x406f06
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.00404560
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [ebp - 0x10]
mov bl, al
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x406f60
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x406f60
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x406f7c
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x406f9f
cmp byte [ebp + 0xc], 0
je 0x406f8b
push esi
call fcn.0041dc9f
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x406fab
mov esi, str.ios_base::badbit_set
jmp 0x406fbb
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.004056d0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.00404aa0
push 0x52bed0
lea eax, [ebp - 0x28]
push eax
call fcn.004cea51
int3
Function at 0x407ce0
Capabilities:
Check if file exists
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4faa20
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5543c8]
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 edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x231]
mov dword [ebp - 0x238], esi
call fcn.00405880
mov eax, dword [edi + 0x52c]
lea ebx, [edi + 0x52c]
mov ecx, dword [ebx + 4]
cmp eax, ecx
je 0x407d47
push ebx
push ecx
push eax
call fcn.00403e70
mov eax, dword [ebx]
add esp, 0xc
mov dword [ebx + 4], eax
push esi
mov ecx, edi
call fcn.004081b0
mov esi, dword [ebx]
cmp esi, dword [edi + 0x530]
je 0x407e12
nop dword [eax]
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x407d6a
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00401cb0
add esp, 8
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407dbc
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov ecx, edi
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.004085b0
mov ecx, dword [ebp - 0x21c]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 8
jb 0x407e03
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407df9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407eb4
push ecx
push edx
call fcn.004cd29e
add esp, 8
add esi, 0x18
cmp esi, dword [edi + 0x530]
jne 0x407d60
push dword [ebp - 0x238]
mov ecx, edi
call fcn.004081b0
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
cmp eax, ecx
je 0x407e38
push ebx
push ecx
push eax
call fcn.00403e70
mov eax, dword [ebx]
add esp, 0xc
mov dword [ebx + 4], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004cf400
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x218]
push eax
call esi
mov ebx, dword [ebp - 0x238]
mov ecx, edi
push ebx
call fcn.004081b0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x218]
push eax
call esi
push ebx
mov ecx, edi
call fcn.004081b0
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.004cd2ac
mov esp, ebp
pop ebp
ret 4
call fcn.004d2fbf
int3
Function at 0x407f70
Capabilities:
Check if file exists
Create shortcut via ishelllink
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4faa6b
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x5543c8]
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 [ebp + 0xc]
lea ecx, [ebp - 0x42d]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x434], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x438], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x43c], eax
call fcn.00405ce0
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407fdc
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x424], 0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004cf400
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 0x42c], 0
push 0
push eax
call fcn.004cf400
add esp, 0x18
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x408048
mov esi, 0x80004005
jmp 0x40816d
lea eax, [ebp - 0x424]
push eax
push 0x504a24
push 1
push 0
push 0x504a34
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x40816d
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x428], 0
test eax, eax
je 0x4080ab
mov ecx, dword [eax]
lea edx, [ebp - 0x428]
push edx
push 0x50214c
push eax
call dword [ecx]
mov ecx, dword [ebp - 0x428]
xor edx, edx
test eax, eax
mov eax, dword [ebp - 0x424]
cmovs ecx, edx
mov dword [ebp - 0x428], ecx
mov ecx, dword [eax]
lea edx, [ebp - 0x218]
push edx
push eax
mov byte [ebp - 4], 1
call dword [ecx + 0x50]
mov esi, eax
test esi, esi
js 0x408159
mov eax, dword [ebp - 0x424]
mov edi, 0x527204
mov esi, dword [ebp - 0x434]
mov ecx, edi
test esi, esi
mov edx, dword [eax]
cmovne ecx, esi
push ecx
push eax
call dword [edx + 0x1c]
mov esi, eax
test esi, esi
js 0x408159
mov edx, dword [ebp - 0x438]
test edx, edx
je 0x40810a
mov eax, dword [ebp - 0x424]
push 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov esi, eax
test esi, esi
js 0x408159
mov eax, dword [ebp - 0x424]
mov edx, dword [ebp - 0x43c]
test edx, edx
cmovne edi, edx
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x24]
mov esi, eax
test esi, esi
js 0x408159
push 0x104
push ebx
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.004d8d8e
mov eax, dword [ebp - 0x428]
lea edx, [ebp - 0x420]
add esp, 0x10
mov ecx, dword [eax]
push 1
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x428]
mov byte [ebp - 4], 0
test eax, eax
je 0x40816d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x424]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x408184
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
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.004cd2ac
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4085b0
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x5543c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x825]
push edi
mov dword [ebp - 0x82c], esi
call fcn.00405880
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call edi
test eax, eax
je 0x408764
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call ebx
test eax, eax
jne 0x408763
push 0x208
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.004cf400
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004cf400
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x825]
call fcn.00405c40
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004cf400
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.004cf400
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004d7ac2
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004cf91d
add esp, 0x2c
test eax, eax
jne 0x4086a3
lea eax, [ebp - 0x20c]
push 0x2f
push eax
call fcn.004cf91d
add esp, 8
test eax, eax
je 0x4086bb
add eax, 2
push eax
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.004d7ac2
add esp, 0xc
xor esi, esi
nop dword [eax]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004cf400
add esp, 0xc
lea eax, [ebp - 0x824]
test esi, esi
jne 0x4086fe
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push str._s_s.del
push eax
call fcn.004076c0
add esp, 0x10
jmp 0x40871b
push esi
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push str._s_s.del_d
push eax
call fcn.004076c0
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x40873d
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
jne 0x40873d
cmp esi, 0xa
jge 0x408763
inc esi
jmp 0x4086c0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x82c]
call fcn.004d9b45
add esp, 8
lea eax, [ebp - 0x20c]
push 5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004cd2ac
mov esp, ebp
pop ebp
ret 4
Function at 0x40d720
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb1c5
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5543c8]
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
lea eax, [ebp - 0x30]
push eax
call fcn.00401370
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movlpd qword [ebp - 0x18], xmm0
push 0xc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.004cd26e
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00401690
add esp, 0x10
test al, al
je 0x40d7d6
cmp dword [ebp - 0x14], 1
jbe 0x40d7d6
mov edi, dword [ebp - 0x18]
mov esi, dword [edi]
cmp esi, edi
je 0x40d7d9
mov ebx, dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, ebx
je 0x40d7d0
push ebx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esi]
cmp esi, edi
jne 0x40d7a7
mov edi, dword [ebp - 0x18]
mov eax, dword [edi + 4]
mov dword [eax], 0
mov eax, dword [edi]
test eax, eax
je 0x40d7fb
mov esi, dword [eax]
push 0xc
push eax
call fcn.004cd29e
add esp, 8
mov eax, esi
test esi, esi
jne 0x40d7e8
push 0xc
push dword [ebp - 0x18]
call fcn.004cd29e
mov ecx, dword [ebp - 0x1c]
add esp, 8
cmp ecx, 0x10
jb 0x40d838
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d82e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d854
push ecx
push edx
call fcn.004cd29e
add esp, 8
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.004cd2ac
mov esp, ebp
pop ebp
ret
call fcn.004d2fbf
int3
Function at 0x411c60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 8]
push 0x411c80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret 4

Function at 0x412020
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 8]
mov byte [0x556470], 0
push 0x4120a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret 4

Function at 0x412050
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 0
push dword [ebp + 8]
mov esi, ecx
push 0x412160
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 4]
mov dword [ebp + 8], eax
cmp ecx, dword [esi + 8]
je 0x412082
mov dword [ecx], eax
add dword [esi + 4], 4
pop esi
pop ebp
ret 4
lea eax, [ebp + 8]
push eax
push ecx
mov ecx, esi
call fcn.0040ed00
pop esi
pop ebp
ret 4

Function at 0x412590
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, dword [edi + 4]
mov esi, dword [edi]
cmp esi, ebx
je 0x4125b1
nop
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
add esi, 4
cmp esi, ebx
jne 0x4125a0
mov eax, dword [edi]
cmp eax, dword [edi + 4]
je 0x4125bb
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
ret
Function at 0x414190
Capabilities:
Check if file exists
Create shortcut via ishelllink
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4faa6b
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x5543c8]
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 [ebp + 0xc]
lea ecx, [ebp - 0x42d]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x434], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x438], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x43c], eax
call fcn.00405a60
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4141fc
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x424], 0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004cf400
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 0x42c], 0
push 0
push eax
call fcn.004cf400
add esp, 0x18
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x414268
mov esi, 0x80004005
jmp 0x41438d
lea eax, [ebp - 0x424]
push eax
push 0x504a24
push 1
push 0
push 0x504a34
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x41438d
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x428], 0
test eax, eax
je 0x4142cb
mov ecx, dword [eax]
lea edx, [ebp - 0x428]
push edx
push 0x50214c
push eax
call dword [ecx]
mov ecx, dword [ebp - 0x428]
xor edx, edx
test eax, eax
mov eax, dword [ebp - 0x424]
cmovs ecx, edx
mov dword [ebp - 0x428], ecx
mov ecx, dword [eax]
lea edx, [ebp - 0x218]
push edx
push eax
mov byte [ebp - 4], 1
call dword [ecx + 0x50]
mov esi, eax
test esi, esi
js 0x414379
mov eax, dword [ebp - 0x424]
mov edi, 0x527204
mov esi, dword [ebp - 0x434]
mov ecx, edi
test esi, esi
mov edx, dword [eax]
cmovne ecx, esi
push ecx
push eax
call dword [edx + 0x1c]
mov esi, eax
test esi, esi
js 0x414379
mov edx, dword [ebp - 0x438]
test edx, edx
je 0x41432a
mov eax, dword [ebp - 0x424]
push 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov esi, eax
test esi, esi
js 0x414379
mov eax, dword [ebp - 0x424]
mov edx, dword [ebp - 0x43c]
test edx, edx
cmovne edi, edx
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x24]
mov esi, eax
test esi, esi
js 0x414379
push 0x104
push ebx
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.004d8d8e
mov eax, dword [ebp - 0x428]
lea edx, [ebp - 0x420]
add esp, 0x10
mov ecx, dword [eax]
push 1
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x428]
mov byte [ebp - 4], 0
test eax, eax
je 0x41438d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x424]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x4143a4
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
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.004cd2ac
mov esp, ebp
pop ebp
ret 0x14
Function at 0x416740
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5543c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 0x15]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
call fcn.00405920
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 4
push eax
movzx eax, byte [ebp + 0x14]
shl eax, 8
inc eax
mov dword [ebp - 8], 4
push eax
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4167bf
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4167bf
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cd2ac
mov esp, ebp
pop ebp
ret 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cd2ac
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4167e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5543c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0xd]
call fcn.00405880
mov bl, byte [ebp + 8]
mov ecx, dword [esi + 0x53c]
mov byte [esi + 0x4c4], bl
test ecx, ecx
je 0x416824
mov eax, dword [ecx]
test bl, bl
je 0x41681c
push 0x503a48
jmp 0x416821
push str.S_MR3
call dword [eax + 0x3c]
push edi
movzx edi, bl
lea ecx, [ebp - 0xd]
xor edi, 1
mov dword [ebp - 0xc], edi
call fcn.004059c0
lea eax, [ebp - 8]
push eax
push 2
push 0
push str.SOFTWAREMicrosoftDirectDraw
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x41686c
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push str.EmulationOnly
push dword [ebp - 8]
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push reloc.WS2_32.dll_bind
call esi
lea ecx, [ebp - 0xd]
mov dword [ebp - 8], edi
call fcn.004059c0
lea eax, [ebp - 0xc]
push eax
push 2
push 0
push str.SOFTWAREMicrosoftDirect3DDrivers
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4168b4
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.SoftwareOnly
push dword [ebp - 0xc]
call ebx
push reloc.WS2_32.dll_bind
call esi
lea ecx, [ebp - 0xd]
mov dword [ebp - 8], edi
call fcn.004059c0
lea eax, [ebp - 0xc]
push eax
push 0x102
push 0
push str.SOFTWAREMicrosoftDirectDraw
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4168f9
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.EmulationOnly
push dword [ebp - 0xc]
call ebx
push reloc.WS2_32.dll_bind
call esi
lea ecx, [ebp - 0xd]
mov dword [ebp - 8], edi
call fcn.004059c0
lea eax, [ebp - 0xc]
push eax
push 0x102
push 0
push str.SOFTWAREMicrosoftDirect3DDrivers
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
test eax, eax
jne 0x41693f
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.SoftwareOnly
push dword [ebp - 0xc]
call ebx
push reloc.WS2_32.dll_bind
call esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004cd2ac
mov esp, ebp
pop ebp
ret 4
Function at 0x4199f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc487
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5543c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0xd]
call fcn.00405880
mov ecx, dword [esi + 0x6d4]
push 0x5044a8
call dword [0x5273c8]
mov ecx, esi
mov dword [esi + 0x6e0], eax
call fcn.00418670
push 0
push 0
push esi
push 0x41ce40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
mov eax, dword [0x55646c]
test eax, eax
jne 0x419aa2
push 0x200
call fcn.004cd26e
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x419a94
push 0x200
push 0
push esi
call fcn.004cf400
add esp, 0xc
mov ecx, esi
call fcn.0040c630
jmp 0x419a96
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x55646c], eax
push edi
mov ecx, eax
call fcn.0040ddb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret