joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468d00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4deb2b
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x5256a8]
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 [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x26c], eax
call fcn.00404050
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
mov ecx, eax
call fcn.004128d0
test al, al
je 0x468e7f
call fcn.00411e10
mov edi, eax
test edi, edi
je 0x468e7f
test esi, esi
je 0x468e7f
cmp word [esi], 0
je 0x468e7f
push esi
lea ecx, [ebp - 0x234]
call fcn.00408770
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x468dd3
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x102
ja 0x468dd3
push esi
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x468dd3
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.004321e0
mov ecx, dword [ebp + 0x10]
push 0
mov dword [ebp - 0x274], ecx
push edi
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x278], 0x208
call fcn.00472010
push 0x30
lea edx, [ebp - 0x264]
push 0
push edx
mov dword [ebp - 0x268], 0
call fcn.004b7120
add esp, 0xc
cmp dword [ebp - 0x220], 8
jb 0x468e28
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x270], eax
jmp 0x468e34
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x270], ecx
mov edx, dword [ebp - 0x26c]
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x278]
push ecx
mov dword [ebp - 0x26c], edx
lea edx, [ebp - 0x270]
push edx
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x284]
push 0x101
push ecx
call fcn.00464220
add esp, 0x18
lea ecx, [ebp - 0x234]
test eax, eax
je 0x468e9e
call fcn.00409fe0
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.00401306
mov esp, ebp
pop ebp
ret 0xc
call fcn.00409fe0
mov eax, 1
jmp 0x468e81

Function at 0x46e1a0
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x46e1ba
push eax
call dword [sym.imp.GDI32.dll_CloseEnhMetaFile]
mov dword [esi + 8], eax
mov dword [esi + 4], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x46e1cb
push eax
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov dword [esi + 8], ebx
cmp dword [esi + 0x1c], ebx
je 0x46e1f8
cmp dword [esi + 0x20], 8
push edi
lea edi, [esi + 0xc]
jb 0x46e1de
mov eax, dword [edi]
jmp 0x46e1e0
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], ebx
jb 0x46e1f2
mov edi, dword [edi]
xor eax, eax
mov word [edi], ax
pop edi
mov dword [esi], ebx
mov dword [esi + 0x28], ebx
pop esi
pop ebx
ret
Function at 0x46e1a1
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x46e1ba
push eax
call dword [sym.imp.GDI32.dll_CloseEnhMetaFile]
mov dword [esi + 8], eax
mov dword [esi + 4], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x46e1cb
push eax
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov dword [esi + 8], ebx
cmp dword [esi + 0x1c], ebx
je 0x46e1f8
cmp dword [esi + 0x20], 8
push edi
lea edi, [esi + 0xc]
jb 0x46e1de
mov eax, dword [edi]
jmp 0x46e1e0
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], ebx
jb 0x46e1f2
mov edi, dword [edi]
xor eax, eax
mov word [edi], ax
pop edi
mov dword [esi], ebx
mov dword [esi + 0x28], ebx
pop esi
pop ebx
ret

Function at 0x46f240
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x5256a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
xor ebx, ebx
mov dword [esi + 0x28], ebx
cmp eax, ebx
je 0x46f270
push eax
call dword [sym.imp.GDI32.dll_CloseEnhMetaFile]
mov dword [esi + 8], eax
mov dword [esi + 4], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x46f281
push eax
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov dword [esi + 8], ebx
cmp dword [esi + 0x1c], ebx
je 0x46f2ae
cmp dword [esi + 0x20], 8
push edi
lea edi, [esi + 0xc]
jb 0x46f294
mov eax, dword [edi]
jmp 0x46f296
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], ebx
jb 0x46f2a8
mov edi, dword [edi]
xor eax, eax
mov word [edi], ax
pop edi
lea ecx, [ebp - 0x414]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x46f35f
lea edx, [ebp - 0x20c]
push edx
push ebx
push 0x4ffb7c
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x46f35f
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
lea edx, [ebp - 0x424]
push edx
push ebx
push ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x41c], 0x5456
mov dword [ebp - 0x418], 0x6d24
call dword [sym.imp.GDI32.dll_CreateEnhMetaFileW]
mov dword [esi + 4], eax
lea eax, [ebp - 0x20c]
mov dword [esi + 8], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46f332
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
lea ecx, [esi + 0xc]
push eax
call fcn.00406030
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 4]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetPolyFillMode]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x2c], ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x473010
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5256a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor bl, bl
test edi, edi
je 0x473038
mov dword [edi], 0
test esi, esi
je 0x47314d
cmp dword [esi + 0x10], 0
je 0x47314d
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x234], eax
cmp eax, 0xffffffff
je 0x47313a
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.004b7120
mov edx, dword [ebp - 0x234]
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push edx
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x47312d
lea ecx, [ecx]
xor eax, eax
mov ecx, esi
mov word [ebp - 6], ax
call fcn.00417930
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00408516
add esp, 8
test eax, eax
sete bl
test bl, bl
je 0x4730ca
test edi, edi
jne 0x473125
push 0x22c
lea edx, [ebp - 0x230]
push 0
push edx
call fcn.004b7120
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
test bl, bl
jne 0x47312d
mov ecx, dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push eax
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4730a0
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x228]
mov dword [edi], edx
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x475770
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbed8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5256a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 0x10]
mov edi, 8
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], edi
jb 0x4757be
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47585e
mov esi, dword [ebp + 0x14]
mov dword [ebp + 0x10], ebx
cmp dword [esi + 0x14], edi
jb 0x4757ea
mov eax, dword [esi]
jmp 0x4757ec
mov eax, esi
mov edx, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp + 0x10]
push ecx
push ebx
push ebx
push ebx
push eax
push edx
call edi
cmp eax, ebx
je 0x475809
cmp eax, 0x7a
jne 0x47584c
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jbe 0x47584c
shr eax, 1
push ebx
add eax, 2
push eax
lea ecx, [ebp - 0x24]
call fcn.00475140
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
sub ecx, eax
sar ecx, 1
add ecx, ecx
cmp dword [esi + 0x14], 8
mov dword [ebp + 0x10], ecx
jb 0x475836
mov esi, dword [esi]
lea edx, [ebp + 0x10]
push edx
push eax
mov eax, dword [ebp - 0x14]
push ebx
push ebx
push esi
push eax
call edi
test eax, eax
jne 0x47584c
mov byte [ebp - 0xd], 1
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x24]
cmp byte [ebp - 0xd], bl
jne 0x475863
mov edx, 0x4e796c
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
mov eax, edx
lea edi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x475880
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.00406030
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x4758a8
push eax
call fcn.00406cf9
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x476910
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x5256a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov dword [ebp - 0x420], 0
mov word [ebp - 0x210], ax
call fcn.004b7120
xor edx, edx
push 0x208
push edx
lea eax, [ebp - 0x41a]
push eax
mov word [ebp - 0x41c], dx
call fcn.004b7120
add esp, 0x18
push edi
push 0
push 0x410
xor bl, bl
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4769d9
push 0x105
lea ecx, [ebp - 0x210]
push ecx
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x4769c8
push 0
push 0
push 0x105
lea edx, [ebp - 0x41c]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004b9393
add esp, 0x24
test eax, eax
jne 0x4769c8
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x41c]
test bl, bl
jne 0x4769de
mov edx, 0x4e796c
xor ecx, ecx
mov eax, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4769f6
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.00406030
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x47e400
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5256a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
test esi, esi
je 0x47e49c
cmp word [esi], 0
je 0x47e49c
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x47e49c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47e49c
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push esi
call edi
test eax, eax
je 0x47e49b
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00402c29
add esp, 0xc
test eax, eax
jne 0x47e49b
push 0x501988
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x47e49b
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47e499
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x47e499
mov bl, 1
jmp 0x47e49b
xor bl, bl
pop edi
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret 4

Function at 0x47e4b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
mov ebx, ecx
je 0x47e4f8
cmp dword [esi + 0x14], 8
jb 0x47e4ca
mov eax, dword [esi]
jmp 0x47e4cc
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47e4f8
cmp dword [esi + 0x14], 8
jb 0x47e4df
mov esi, dword [esi]
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 0x2c]
push esi
push 7
push 2
call edx
neg eax
sbb eax, eax
pop esi
inc eax
pop ebx
pop ebp
ret 4
pop esi
mov al, 1
pop ebx
pop ebp
ret 4
Function at 0x47e500
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e076b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5256a8]
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]
cmp dword [esi + 0x10], 0
mov edi, ecx
mov dword [ebp - 0x240], edi
jne 0x47e545
mov al, 1
jmp 0x47e6cf
cmp dword [esi + 0x14], 8
mov byte [ebp - 0x239], 0
jb 0x47e556
mov eax, dword [esi]
jmp 0x47e558
mov eax, esi
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x47e577
cmp eax, 0x50
je 0x47e577
cmp eax, 0xb7
jne 0x47e6c9
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x21a]
push ecx
mov word [ebp - 0x21c], ax
call fcn.004b7120
add esp, 0xc
xor edx, edx
push 0xffffffffffffffff
push edx
push esi
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], dx
call fcn.00406690
lea eax, [ebp - 0x238]
push eax
mov dword [ebp - 4], 0
call fcn.00417940
mov eax, dword [ebp - 0x238]
mov esi, 8
add esp, 4
cmp dword [ebp - 0x224], esi
jae 0x47e5f0
lea eax, [ebp - 0x238]
mov ecx, dword [edi]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x2c]
push 0
push 0
call eax
test eax, eax
jne 0x47e6b1
cmp dword [ebp - 0x224], esi
mov esi, dword [ebp - 0x238]
jae 0x47e61a
lea esi, [ebp - 0x238]
lea eax, [ebp - 0x21c]
mov ecx, eax
xor edi, edi
mov edx, 0x105
sub esi, ecx
jmp 0x47e630
lea ecx, [edx + 0x7ffffef9]
test ecx, ecx
je 0x47e64e
movzx ecx, word [esi + eax]
test cx, cx
je 0x47e64e
mov word [eax], cx
add eax, 2
dec edx
jne 0x47e630
jmp 0x47e652
test edx, edx
jne 0x47e65a
sub eax, 2
mov edi, 0x8007007a
xor edx, edx
mov word [eax], dx
test edi, edi
js 0x47e6b1
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x47e6b1
push 0x4ffebc
push 0x105
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00420830
test eax, eax
js 0x47e6b1
mov edx, dword [ebp - 0x240]
mov ecx, dword [edx]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
lea edx, [ebp - 0x21c]
push edx
push 0
push 0
call eax
test eax, eax
sete byte [ebp - 0x239]
cmp dword [ebp - 0x224], 8
jb 0x47e6c9
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.00406cf9
add esp, 4
mov al, byte [ebp - 0x239]
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.00401306
mov esp, ebp
pop ebp
ret 4
Function at 0x47e7f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x5256a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x41c], ebx
test byte [0x528994], 1
push esi
mov esi, dword [ebp + 8]
jne 0x47e845
or dword [0x528994], 1
xor eax, eax
push 0x4e5d70
mov dword [0x52898c], 7
mov dword [0x528988], ebx
mov word [0x528978], ax
call fcn.00404cfb
add esp, 4
cmp byte [0x528974], bl
jne 0x47e90e
lea ecx, [ebp - 0x418]
push ecx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionAeDebug
push 0x80000002
mov byte [0x528974], 1
mov dword [ebp - 0x418], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47e90e
push 0x410
lea edx, [ebp - 0x414]
push ebx
push edx
mov dword [ebp - 0x41c], ebx
call fcn.004b7120
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x418]
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x41c]
push edx
push ebx
push str.Debugger
push eax
mov dword [ebp - 0x420], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47e901
lea eax, [ebp - 0x414]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x47e8e0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x414]
push ecx
mov ecx, 0x528978
call fcn.00406030
mov edx, dword [ebp - 0x418]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
push ebx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push 0x528978
mov ecx, esi
mov word [esi], ax
call fcn.00406690
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x47e940
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e07f0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5256a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
test byte [0x5289b8], 1
mov dword [ebp - 0x4c], ebx
jne 0x47e9a7
or dword [0x5289b8], 1
xor eax, eax
push 0x4e5db0
mov dword [0x5289b0], 7
mov dword [0x5289ac], ebx
mov word [0x52899c], ax
call fcn.00404cfb
add esp, 4
cmp byte [0x528998], bl
jne 0x47ea9f
lea ecx, [ebp - 0x48]
push ecx
mov byte [0x528998], 1
call fcn.0047e7f0
add esp, 4
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x38], ebx
je 0x47ea86
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00457dd0
add esp, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], ebx
je 0x47ea74
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00457680
add esp, 4
test al, al
je 0x47ea4c
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x47ea0b
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
jne 0x47ea23
push 0x502040
lea ecx, [ebp - 0x2c]
call fcn.00421f10
lea edx, [ebp - 0x2c]
push edx
push 1
sub esp, 0x1c
mov eax, esp
xor ecx, ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ebx
mov dword [ebp - 0x4c], esp
mov word [eax], cx
call fcn.00457780
add esp, 0x24
cmp al, bl
je 0x47ea74
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x47ea58
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47ea74
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x2c]
push edx
mov ecx, 0x52899c
call fcn.00406690
cmp dword [ebp - 0x18], 8
jb 0x47ea86
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406cf9
add esp, 4
cmp dword [ebp - 0x34], 8
mov dword [ebp - 4], 0xffffffff
jb 0x47ea9f
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00406cf9
add esp, 4
push 0xffffffffffffffff
push ebx
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push 0x52899c
mov ecx, esi
mov word [esi], dx
call fcn.00406690
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x47eae0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dfbc8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5256a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
test byte [0x5289dc], 1
mov dword [ebp - 0x30], ebx
jne 0x47eb47
or dword [0x5289dc], 1
xor eax, eax
push 0x4e5df0
mov dword [0x5289d4], 7
mov dword [0x5289d0], ebx
mov word [0x5289c0], ax
call fcn.00404cfb
add esp, 4
cmp byte [0x5289bc], bl
jne 0x47ebb3
push ebx
push str.WerFault.exe
lea ecx, [ebp - 0x2c]
push 0x29
push ecx
mov byte [0x5289bc], 1
call fcn.00420570
add esp, 0x10
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], ebx
je 0x47eb9a
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x47eb7e
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47eb9a
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x2c]
push edx
mov ecx, 0x5289c0
call fcn.00406690
cmp dword [ebp - 0x18], 8
mov dword [ebp - 4], 0xffffffff
jb 0x47ebb3
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406cf9
add esp, 4
push 0xffffffffffffffff
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push ebx
mov word [esi], cx
push 0x5289c0
mov ecx, esi
call fcn.00406690
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret

Function at 0x47ebf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dfbc8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5256a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
test byte [0x528a00], 1
mov dword [ebp - 0x30], ebx
jne 0x47ec57
or dword [0x528a00], 1
xor eax, eax
push 0x4e5e30
mov dword [0x5289f8], 7
mov dword [0x5289f4], ebx
mov word [0x5289e4], ax
call fcn.00404cfb
add esp, 4
cmp byte [0x5289e0], bl
jne 0x47ecc3
push ebx
push str.DWwin.exe
lea ecx, [ebp - 0x2c]
push 0x25
push ecx
call fcn.00420570
add esp, 0x10
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], ebx
je 0x47eca3
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x47ec87
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47eca3
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x2c]
push edx
mov ecx, 0x5289e4
call fcn.00406690
cmp dword [ebp - 0x18], 8
mov byte [0x5289e0], 1
mov dword [ebp - 4], 0xffffffff
jb 0x47ecc3
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406cf9
add esp, 4
push 0xffffffffffffffff
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push ebx
mov word [esi], cx
push 0x5289e4
mov ecx, esi
call fcn.00406690
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x481150
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x5256a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor bl, bl
push esi
mov esi, ecx
test eax, eax
je 0x481279
cmp word [eax], 0
je 0x481279
cmp edi, 1
jbe 0x481279
push str.8895b1c6_b41f_4c1c_a562_0d564250836f
push eax
push str.._sShellEx_s
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.00408a40
add esp, 0x14
test eax, eax
js 0x481267
lea ecx, [ebp - 0x808]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x804]
push edx
push 0x80000000
mov dword [ebp - 0x808], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x481267
lea ecx, [edi + edi]
push ecx
lea eax, [edi + edi - 2]
push 0
push esi
mov dword [ebp - 0x810], 1
mov dword [ebp - 0x80c], eax
call fcn.004b7120
mov ecx, dword [ebp - 0x808]
add esp, 0xc
lea edx, [ebp - 0x80c]
push edx
push esi
lea eax, [ebp - 0x810]
push eax
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48125a
cmp word [esi], ax
je 0x481258
lea esp, [esp]
movzx edx, word [esi]
push edx
call fcn.004b83c8
add eax, dword [eax]
add esp, 4
test eax, eax
je 0x48124f
movzx eax, word [esi]
push eax
call fcn.004b9267
add esp, 4
mov word [esi], ax
add esi, 2
cmp word [esi], 0
jne 0x481230
mov bl, 1
mov ecx, dword [ebp - 0x808]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret