joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405240
Capabilities:
Check if file exists
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
mov eax, dword [0x470050]
xor eax, esp
mov dword [esp + 0xc8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov ecx, 0x2e
mov esi, str._000214A0_0000_0000_C000_000000000046__r_nProp319_2_r_n_InternetShortcut__r_nURL_s_r_nIDList_r_n
lea edi, [esp + 0x18]
mov dword [esp + 0x10], eax
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405280
sub eax, edx
sar eax, 1
lea edi, [eax + 0x61]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042c1de
mov esi, eax
add esp, 4
test esi, esi
je 0x4052f2
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4052ca
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80000080
push 2
push 0
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
test ebx, ebx
jne 0x405309
push esi
call fcn.0042cd84
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0042c1e9
mov esp, ebp
pop ebp
ret
lea eax, [edi + edi]
push eax
push 0
push esi
call fcn.0042e060
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
dec edi
push edi
push esi
call fcn.004012c0
mov eax, esi
add esp, 0x1c
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405330
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 0x18]
push ecx
lea edx, [eax + eax]
push edx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0042cd84
mov ecx, dword [esp + 0xd8]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.0042c1e9
mov esp, ebp
pop ebp
ret
Function at 0x405380
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x43c
mov eax, dword [0x470050]
xor eax, esp
mov dword [esp + 0x438], eax
mov eax, dword [esp + 0x440]
push ebx
push ebp
push esi
push edi
push 0x22c
lea ecx, [esp + 0x18]
push 0
push ecx
mov dword [esp + 0x1c], eax
call fcn.0042e060
add esp, 0xc
xor edi, edi
push edi
push 2
mov ebx, 3
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x405485
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x14]
push edx
push esi
mov dword [esp + 0x1c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x405459
mov edi, edi
lea eax, [esp + 0x38]
push 0x5c
push eax
call fcn.0042c934
add esp, 8
test eax, eax
je 0x405416
add eax, 2
push eax
push 0x103
lea ecx, [esp + 0x248]
push ecx
jmp 0x405428
lea edx, [esp + 0x38]
push edx
push 0x103
lea eax, [esp + 0x248]
push eax
call fcn.0042cd8f
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x240]
push ecx
push edx
call fcn.0042caf2
add esp, 8
test eax, eax
jne 0x40544a
inc edi
lea eax, [esp + 0x14]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4053f0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
dec ebx
test edi, edi
jle 0x405489
test ebx, ebx
jl 0x405489
push 0x1f4
call ebp
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4053d7
xor al, al
jmp 0x405490
xor eax, eax
test edi, edi
setg al
mov ecx, dword [esp + 0x448]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042c1e9
add esp, 0x43c
ret
Function at 0x406bb0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4555a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x470050]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.004028d0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406c06
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.004067a0
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.004028d0
cmp dword [esp + 0x24], 8
jb 0x406c4f
mov edx, dword [esp + 0x10]
push edx
call fcn.0042c62b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x408010
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4034
call fcn.0043d5c0
mov eax, dword [0x470050]
xor eax, esp
mov dword [esp + 0x4030], eax
push ebx
push edi
mov edi, dword [esp + 0x4040]
xor ebx, ebx
cmp byte [edi + 0xc70], bl
je 0x408162
cmp dword [edi + 0xe7c], ebx
je 0x408162
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0xc], ebx
call fcn.0042d114
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0042cdfe
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
push str._02d:_02d:_02d
lea eax, [esp + 0x54]
push 0x2000
push eax
call fcn.004012c0
lea eax, [esp + 0x5c]
add esp, 0x24
mov dword [esp + 8], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4080a0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, edx
push ebx
sar eax, 1
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [edi + 0xe7c]
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x48]
push eax
push ecx
call esi
mov eax, dword [esp + 0x4048]
lea edx, [esp + 0x404c]
push edx
push eax
lea ecx, [esp + 0x44]
push 0x1fff
push ecx
call fcn.0042c5e4
add esp, 0x10
cmp eax, ebx
jl 0x408109
cmp eax, 0x1fff
ja 0x408109
jne 0x408113
xor edx, edx
mov word [esp + 0x403a], dx
jmp 0x408113
xor eax, eax
mov word [esp + 0x403a], ax
lea eax, [esp + 0x3c]
mov dword [esp + 0xc], ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408120
sub eax, edx
push ebx
sar eax, 1
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [edi + 0xe7c]
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x48]
push eax
push ecx
call esi
mov eax, dword [edi + 0xe7c]
push ebx
lea edx, [esp + 0x10]
push edx
push 4
push 0x45c290
push eax
mov dword [esp + 0x20], ebx
call esi
pop esi
mov ecx, dword [esp + 0x4038]
pop edi
pop ebx
xor ecx, esp
call fcn.0042c1e9
add esp, 0x4034
ret
Function at 0x4081a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x438
mov eax, dword [0x470050]
xor eax, esp
mov dword [esp + 0x434], eax
cmp byte [esi + 0xc70], 0
jne 0x4081da
mov eax, dword [esi + 0xe7c]
test eax, eax
je 0x408223
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xe7c], 0
jmp 0x408223
cmp dword [esi + 0xe7c], 0
jne 0x408230
cmp word [esi + 0xc72], 0
lea eax, [esi + 0xc72]
je 0x408223
push 0
push 0x80000080
push 4
push 0
push 3
push 0xc0000004
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0xe7c], eax
test eax, eax
je 0x408223
push 2
push 0
push 0xfffffffffffffffe
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esi + 0xe7c], 0
je 0x4083bf
lea eax, [esp + 8]
push edi
push eax
call fcn.0042d114
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0042cdfe
mov edx, dword [esi + 0xe7c]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0xc
push 0
lea eax, [esp + 0xc]
push eax
push 2
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x1c], 0
mov byte [esp + 0x18], 0xff
mov byte [esp + 0x19], 0xfe
call edi
push str._r_n
lea eax, [esp + 0x3c]
push 0x200
push eax
call fcn.004012c0
lea eax, [esp + 0x44]
add esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4082a0
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0xe7c]
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x44]
push eax
push ecx
call edi
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
push str.Install_Date:__02d__02d__04d_r_n
lea edx, [esp + 0x48]
push 0x200
push edx
call fcn.004012c0
lea eax, [esp + 0x50]
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4082f5
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0xe7c]
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x44]
push eax
push ecx
call edi
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
push str._02d:_02d:_02d__Started_logging_r_n
lea edx, [esp + 0x48]
push 0x200
push edx
call fcn.004012c0
lea eax, [esp + 0x50]
add esp, 0x18
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408350
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0xe7c]
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x44]
push eax
push ecx
call edi
push 0x45c378
lea edx, [esp + 0x3c]
push 0x200
push edx
call fcn.004012c0
lea eax, [esp + 0x44]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408396
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0xe7c]
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x44]
push eax
push ecx
call edi
pop edi
mov ecx, dword [esp + 0x434]
xor eax, eax
cmp dword [esi + 0xe7c], eax
setne al
xor ecx, esp
call fcn.0042c1e9
add esp, 0x438
ret
Function at 0x4083e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x434
mov eax, dword [0x470050]
xor eax, esp
mov dword [esp + 0x430], eax
cmp dword [esi + 0xe7c], 0
je 0x408526
lea eax, [esp + 4]
push eax
call fcn.0042d114
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.0042cdfe
push str._r_n_r_n
lea eax, [esp + 0x40]
push 0x200
push eax
mov dword [esp + 0x18], 0
call fcn.004012c0
lea eax, [esp + 0x48]
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408440
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esi + 0xe7c]
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x40]
push eax
push ecx
call edi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
push str._02d:_02d:_02d__Stopping_install_logging_r_n
lea edx, [esp + 0x44]
push 0x200
push edx
call fcn.004012c0
lea eax, [esp + 0x4c]
add esp, 0x18
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4084a0
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esi + 0xe7c]
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x40]
push eax
push ecx
call edi
push str._r_n_r_n_r_n
lea edx, [esp + 0x38]
push 0x200
push edx
call fcn.004012c0
lea eax, [esp + 0x40]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4084e6
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esi + 0xe7c]
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x40]
push eax
push ecx
call edi
mov edx, dword [esi + 0xe7c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xe7c], 0
pop edi
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.0042c1e9
add esp, 0x434
ret
Function at 0x418570
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ecx, edi
shr ecx, 5
inc ecx
mov ebx, edi
mov dword [esp + 0xc], edi
mov edx, edi
cmp edi, ecx
jb 0x4185b1
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + edx - 1]
mov esi, ebx
shl esi, 5
add eax, esi
mov esi, ebx
shr esi, 2
add eax, esi
sub edx, ecx
xor ebx, eax
cmp edx, ecx
jae 0x41858f
mov dword [esp + 0xc], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [eax]
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x41861a
cmp dword [eax + 0xc], edi
jne 0x418614
mov esi, dword [ebp + 0xc]
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x4185ec
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x418610
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x4185d8
test ecx, ecx
je 0x418633
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x418610
cmp ecx, 1
jbe 0x418633
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x418610
cmp ecx, 2
jbe 0x418633
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x418633
mov ebx, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x4185c6
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
mov eax, ebx
call fcn.004184c0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x10]
mov cl, byte [eax + 5]
movzx edx, byte [edx + 0x14]
movzx ebx, cl
not edx
and ebx, 3
test bl, dl
je 0x41862c
pop edi
xor cl, 3
pop esi
mov byte [eax + 5], cl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4202a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x224
mov eax, dword [0x470050]
xor eax, esp
mov dword [esp + 0x220], eax
mov eax, dword [esp + 0x228]
push ebx
push ebp
push esi
mov esi, ecx
lea ecx, [esp + 0x24]
push edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 0
mov ebp, 0x200
jmp 0x4202e8
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x28]
sub ecx, edx
mov dword [esp + 0x18], ecx
je 0x420342
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [eax + 0x40]
jb 0x420306
mov ebx, esi
call fcn.00414e80
mov edx, dword [esp + 0x18]
mov edi, dword [esi + 8]
push edx
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.00418570
mov dword [edi], eax
mov dword [edi + 8], 4
add dword [esi + 8], 0x10
inc dword [esp + 0x2c]
lea edx, [esp + 0x28]
add esp, 0xc
lea ecx, [esp + 0x28]
push edx
mov dword [esp + 0x20], ecx
call fcn.00410cb0
add esp, 4
mov edi, dword [esp + 0x23c]
cmp ebp, edi
jbe 0x42034f
mov ebp, edi
mov eax, dword [esp + 0x10]
push eax
push ebp
lea ecx, [esp + 0x30]
push 1
push ecx
call fcn.00443331
mov ecx, dword [esp + 0x2c]
add ecx, eax
add esp, 0x10
sub edi, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x23c], edi
je 0x420381
cmp eax, ebp
je 0x4202e4
lea esi, [esp + 0x1c]
call fcn.00410c40
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
call fcn.0040fde0
mov dword [esp + 0x20], 1
test edi, edi
je 0x4203b7
mov ecx, dword [esp + 0x14]
or eax, 0xffffffff
call fcn.0040f6b0
test eax, eax
ja 0x4203b7
xor eax, eax
jmp 0x4203bc
mov eax, 1
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042c1e9
add esp, 0x224
ret
Function at 0x420790
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x38
push esi
push edi
mov edi, dword [ebx + 8]
sub edi, dword [ebx + 0xc]
mov dword [esp + 0x18], 1
sar edi, 4
sub edi, 1
je 0x42085e
mov esi, dword [ebp + 0xc]
dec edi
mov eax, esi
mov ecx, ebx
mov dword [esp + 0x1c], edi
call fcn.0040f340
cmp eax, 0x45e118
je 0x420897
cmp dword [eax + 8], 3
jne 0x420897
cmp dword [esp + 0x18], 0
je 0x42084a
mov eax, esi
mov ecx, ebx
call fcn.0040f340
mov ecx, dword [eax + 8]
cmp ecx, 3
je 0x420829
cmp ecx, 4
jne 0x420893
mov esi, dword [eax]
add esi, 0x10
lea edi, [esp + 0x28]
call fcn.004119c0
mov edi, dword [esp + 0x1c]
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x420893
fld qword [esp + 0x28]
mov dword [esp + 0x38], 3
fstp qword [esp + 0x30]
lea eax, [esp + 0x30]
fld qword [eax]
mov eax, dword [ebp + 8]
sub esp, 8
fstp qword [esp]
push str._.14g
push eax
call fcn.0044334e
add esp, 0x10
test eax, eax
jg 0x42092b
mov dword [esp + 0x18], 0
inc esi
mov dword [ebp + 0xc], esi
test edi, edi
jne 0x4207b5
call fcn.0042ddf7
cmp dword [esp + 0x18], 0
mov eax, dword [eax]
mov dword [esp + 0x24], eax
je 0x420938
mov eax, dword [ebx + 8]
mov dword [eax], 1
mov dword [eax + 8], 1
add dword [ebx + 8], 0x10
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
fldz
jmp 0x42082b
lea ecx, [esp + 0x20]
push ecx
push esi
mov eax, ebx
call fcn.0040f640
add esp, 8
mov dword [esp + 0x24], eax
test eax, eax
jne 0x420902
mov edi, dword [str.string]
mov eax, esi
mov ecx, ebx
call fcn.0040f340
cmp eax, 0x45e118
je 0x4208cd
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
jne 0x4208d4
mov eax, str.no_value
jmp 0x4208db
mov eax, dword [eax*4 + 0x45e00c]
push eax
push edi
push str._s_expected__got__s
mov eax, ebx
call fcn.0040f820
mov ecx, esi
add esp, 0xc
mov edi, eax
mov esi, ebx
call fcn.0040ffd0
mov edi, dword [esp + 0x1c]
mov esi, dword [ebp + 0xc]
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x18], 0
je 0x42084a
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x20]
push edx
push ecx
push 1
push eax
call fcn.004453e4
add esp, 0x10
cmp eax, dword [esp + 0x20]
jne 0x42084a
mov dword [esp + 0x18], 1
jmp 0x420852
mov edx, dword [ebx + 8]
mov dword [edx + 8], 0
mov esi, 0x10
add dword [ebx + 8], esi
push eax
call fcn.00442d52
add esp, 4
push eax
push 0x45f0f0
mov eax, ebx
call fcn.0040f820
fild dword [esp + 0x2c]
mov eax, dword [ebx + 8]
add esp, 8
fstp qword [eax]
mov dword [eax + 8], 3
add dword [ebx + 8], esi
pop edi
lea eax, [esi - 0xd]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42c1e9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x470050]
jne 0x42c1f3
repz ret
jmp fcn.0042d946
Function at 0x436e67
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042e14c
and dword [ebp - 4], 0
cmp dword [0x4725dc], 0
mov ebx, eax
jne 0x436f18
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x436fc9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x436fc9
push eax
call fcn.0042e0da
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4725dc], eax
call esi
push eax
call fcn.0042e0da
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4725e0], eax
call esi
push eax
call fcn.0042e0da
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4725e4], eax
call esi
push eax
call fcn.0042e0da
pop ecx
mov dword [0x4725ec], eax
test eax, eax
je 0x436f18
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042e0da
pop ecx
mov dword [0x4725e8], eax
mov eax, dword [0x4725e8]
cmp eax, ebx
je 0x436f70
cmp dword [0x4725ec], ebx
je 0x436f70
push eax
call fcn.0042e155
push dword [0x4725ec]
mov esi, eax
call fcn.0042e155
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x436f70
test edi, edi
je 0x436f70
call esi
test eax, eax
je 0x436f67
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x436f67
test byte [ebp - 0xc], 1
jne 0x436f70
or dword [ebp + 0x10], 0x200000
jmp 0x436fa9
mov eax, dword [0x4725e0]
cmp eax, ebx
je 0x436fa9
push eax
call fcn.0042e155
pop ecx
test eax, eax
je 0x436fa9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x436fa9
mov eax, dword [0x4725e4]
cmp eax, ebx
je 0x436fa9
push eax
call fcn.0042e155
pop ecx
test eax, eax
je 0x436fa9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4725dc]
call fcn.0042e155
pop ecx
test eax, eax
je 0x436fc9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x436fcb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43ff90
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x918
mov eax, dword [0x470050]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x43ffb3
mov eax, 0x80070057
jmp 0x4400b3
mov eax, dword [0x45b004]
mov dword [ebp - 0x14], eax
mov ecx, dword [0x45b008]
mov dword [ebp - 0x10], ecx
mov edx, dword [0x45b00c]
mov dword [ebp - 0xc], edx
mov eax, dword [0x45b010]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00441020
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x4400b0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00440570
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x4400b0
xor ecx, ecx
mov word [ebp - 0x118], cx
push 0xfe
push 0
lea edx, [ebp - 0x116]
push edx
call fcn.0042e060
add esp, 0xc
push 0x80
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x4400b0
lea edx, [ebp - 0x118]
push edx
push str.SoftwareClassesSoftwareMicrosoftWindowsCurrentVersionGameUXGamesToFindOnWindowsUpgrade_s
push 0x400
lea eax, [ebp - 0x918]
push eax
call fcn.004012c0
add esp, 0x10
test eax, eax
jl 0x44007a
lea ecx, [ebp - 0x918]
push ecx
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea edx, [ebp - 0x118]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionGameUXGamesToFindOnWindowsUpgrade_s
push 0x400
lea eax, [ebp - 0x918]
push eax
call fcn.004012c0
add esp, 0x10
test eax, eax
jl 0x4400b0
lea ecx, [ebp - 0x918]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c1e9
mov esp, ebp
pop ebp
ret
Function at 0x440440
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x470050]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x429], 0
push 0x100
lea eax, [ebp - 0x428]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x440496
jmp 0x440557
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0x20019
push 0
push 0
push 0
lea edx, [ebp - 0x428]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x44053c
mov dword [ebp - 8], 0x208
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 4]
push eax
push 0
push str.GDFBinaryPath
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x440532
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x220]
push eax
call fcn.00442c6a
add esp, 8
test eax, eax
jne 0x440532
mov byte [ebp - 0x429], 1
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x428]
push edx
call fcn.004402d0
add esp, 8
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx ecx, byte [ebp - 0x429]
test ecx, ecx
je 0x440549
jmp 0x440557
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
jmp 0x440468
mov al, byte [ebp - 0x429]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0042c1e9
mov esp, ebp
pop ebp
ret