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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd51b
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x522638]
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.00404010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
mov ecx, eax
call fcn.004119c0
test al, al
je 0x46e43f
call fcn.00410af0
mov edi, eax
test edi, edi
je 0x46e43f
test esi, esi
je 0x46e43f
cmp word [esi], 0
je 0x46e43f
push esi
lea ecx, [ebp - 0x234]
call fcn.00408720
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x46e393
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x102
ja 0x46e393
push esi
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x46e393
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.00438ae0
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.00477700
push 0x30
lea edx, [ebp - 0x264]
push 0
push edx
mov dword [ebp - 0x268], 0
call fcn.004b8020
add esp, 0xc
cmp dword [ebp - 0x220], 8
jb 0x46e3e8
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x270], eax
jmp 0x46e3f4
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.00469950
add esp, 0x18
lea ecx, [ebp - 0x234]
test eax, eax
je 0x46e45e
call fcn.00409f90
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.00409f90
mov eax, 1
jmp 0x46e441

Function at 0x473820
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x47383a
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 0x47384b
push eax
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov dword [esi + 8], ebx
cmp dword [esi + 0x1c], ebx
je 0x473878
cmp dword [esi + 0x20], 8
push edi
lea edi, [esi + 0xc]
jb 0x47385e
mov eax, dword [edi]
jmp 0x473860
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], ebx
jb 0x473872
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 0x473821
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x47383a
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 0x47384b
push eax
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov dword [esi + 8], ebx
cmp dword [esi + 0x1c], ebx
je 0x473878
cmp dword [esi + 0x20], 8
push edi
lea edi, [esi + 0xc]
jb 0x47385e
mov eax, dword [edi]
jmp 0x473860
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], ebx
jb 0x473872
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 0x474900
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x522638]
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 0x474930
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 0x474941
push eax
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov dword [esi + 8], ebx
cmp dword [esi + 0x1c], ebx
je 0x47496e
cmp dword [esi + 0x20], 8
push edi
lea edi, [esi + 0xc]
jb 0x474954
mov eax, dword [edi]
jmp 0x474956
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], ebx
jb 0x474968
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 0x474a1f
lea edx, [ebp - 0x20c]
push edx
push ebx
push 0x4fdc94
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x474a1f
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 0x4749f2
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
lea ecx, [esi + 0xc]
push eax
call fcn.00405fe0
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 0x478690
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x522638]
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 0x4786b8
mov dword [edi], 0
test esi, esi
je 0x4787cd
cmp dword [esi + 0x10], 0
je 0x4787cd
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x234], eax
cmp eax, 0xffffffff
je 0x4787ba
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.004b8020
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 0x4787ad
lea ecx, [ecx]
xor eax, eax
mov ecx, esi
mov word [ebp - 6], ax
call fcn.0041fc50
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004084c6
add esp, 8
test eax, eax
sete bl
test bl, bl
je 0x47874a
test edi, edi
jne 0x4787a5
push 0x22c
lea edx, [ebp - 0x230]
push 0
push edx
call fcn.004b8020
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
test bl, bl
jne 0x4787ad
mov ecx, dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push eax
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x478720
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 0x47a4b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddbb8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x522638]
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 0x47a4fe
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 0x47a59e
mov esi, dword [ebp + 0x14]
mov dword [ebp + 0x10], ebx
cmp dword [esi + 0x14], edi
jb 0x47a52a
mov eax, dword [esi]
jmp 0x47a52c
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 0x47a549
cmp eax, 0x7a
jne 0x47a58c
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jbe 0x47a58c
shr eax, 1
push ebx
add eax, 2
push eax
lea ecx, [ebp - 0x24]
call fcn.0047a450
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 0x47a576
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 0x47a58c
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 0x47a5a3
mov edx, 0x4e596c
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 0x47a5c0
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.00405fe0
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x47a5e8
push eax
call fcn.00406ca9
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 0x47b860
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x522638]
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.004b8020
xor edx, edx
push 0x208
push edx
lea eax, [ebp - 0x41a]
push eax
mov word [ebp - 0x41c], dx
call fcn.004b8020
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 0x47b929
push 0x105
lea ecx, [ebp - 0x210]
push ecx
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x47b918
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.004b9ecb
add esp, 0x24
test eax, eax
jne 0x47b918
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x41c]
test bl, bl
jne 0x47b92e
mov edx, 0x4e596c
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 0x47b946
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.00405fe0
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 0x482b80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x522638]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
test esi, esi
je 0x482c1c
cmp word [esi], 0
je 0x482c1c
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x482c1c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x482c1c
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push esi
call edi
test eax, eax
je 0x482c1b
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00402be9
add esp, 0xc
test eax, eax
jne 0x482c1b
push 0x4ff914
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x482c1b
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x482c19
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x482c19
mov bl, 1
jmp 0x482c1b
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 0x482c30
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 0x482c78
cmp dword [esi + 0x14], 8
jb 0x482c4a
mov eax, dword [esi]
jmp 0x482c4c
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x482c78
cmp dword [esi + 0x14], 8
jb 0x482c5f
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 0x482c80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4def8b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x522638]
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 0x482cc5
mov al, 1
jmp 0x482e4f
cmp dword [esi + 0x14], 8
mov byte [ebp - 0x239], 0
jb 0x482cd6
mov eax, dword [esi]
jmp 0x482cd8
mov eax, esi
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x482cf7
cmp eax, 0x50
je 0x482cf7
cmp eax, 0xb7
jne 0x482e49
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x21a]
push ecx
mov word [ebp - 0x21c], ax
call fcn.004b8020
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.00406640
lea eax, [ebp - 0x238]
push eax
mov dword [ebp - 4], 0
call fcn.0041fc60
mov eax, dword [ebp - 0x238]
mov esi, 8
add esp, 4
cmp dword [ebp - 0x224], esi
jae 0x482d70
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 0x482e31
cmp dword [ebp - 0x224], esi
mov esi, dword [ebp - 0x238]
jae 0x482d9a
lea esi, [ebp - 0x238]
lea eax, [ebp - 0x21c]
mov ecx, eax
xor edi, edi
mov edx, 0x105
sub esi, ecx
jmp 0x482db0
lea ecx, [edx + 0x7ffffef9]
test ecx, ecx
je 0x482dce
movzx ecx, word [esi + eax]
test cx, cx
je 0x482dce
mov word [eax], cx
add eax, 2
dec edx
jne 0x482db0
jmp 0x482dd2
test edx, edx
jne 0x482dda
sub eax, 2
mov edi, 0x8007007a
xor edx, edx
mov word [eax], dx
test edi, edi
js 0x482e31
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x482e31
push 0x4fdfa4
push 0x105
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00427280
test eax, eax
js 0x482e31
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 0x482e49
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.00406ca9
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 0x482f70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x522638]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x41c], ebx
test byte [0x52595c], 1
push esi
mov esi, dword [ebp + 8]
jne 0x482fc5
or dword [0x52595c], 1
xor eax, eax
push 0x4e40b0
mov dword [0x525954], 7
mov dword [0x525950], ebx
mov word [0x525940], ax
call fcn.00404cc1
add esp, 4
cmp byte [0x52593c], bl
jne 0x48308e
lea ecx, [ebp - 0x418]
push ecx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionAeDebug
push 0x80000002
mov byte [0x52593c], 1
mov dword [ebp - 0x418], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48308e
push 0x410
lea edx, [ebp - 0x414]
push ebx
push edx
mov dword [ebp - 0x41c], ebx
call fcn.004b8020
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 0x483081
lea eax, [ebp - 0x414]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x483060
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x414]
push ecx
mov ecx, 0x525940
call fcn.00405fe0
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 0x525940
mov ecx, esi
mov word [esi], ax
call fcn.00406640
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 0x4830c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df070
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x522638]
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 [0x525980], 1
mov dword [ebp - 0x4c], ebx
jne 0x483127
or dword [0x525980], 1
xor eax, eax
push 0x4e40f0
mov dword [0x525978], 7
mov dword [0x525974], ebx
mov word [0x525964], ax
call fcn.00404cc1
add esp, 4
cmp byte [0x525960], bl
jne 0x48321f
lea ecx, [ebp - 0x48]
push ecx
mov byte [0x525960], 1
call fcn.00482f70
add esp, 4
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x38], ebx
je 0x483206
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.0045fc50
add esp, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], ebx
je 0x4831f4
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0045f500
add esp, 4
test al, al
je 0x4831cc
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x48318b
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
jne 0x4831a3
push 0x4fffc8
lea ecx, [ebp - 0x2c]
call fcn.00428890
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.0045f600
add esp, 0x24
cmp al, bl
je 0x4831f4
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4831d8
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4831f4
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x2c]
push edx
mov ecx, 0x525964
call fcn.00406640
cmp dword [ebp - 0x18], 8
jb 0x483206
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406ca9
add esp, 4
cmp dword [ebp - 0x34], 8
mov dword [ebp - 4], 0xffffffff
jb 0x48321f
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00406ca9
add esp, 4
push 0xffffffffffffffff
push ebx
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push 0x525964
mov ecx, esi
mov word [esi], dx
call fcn.00406640
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 0x483260
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4deff8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x522638]
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 [0x5259a4], 1
mov dword [ebp - 0x30], ebx
jne 0x4832c7
or dword [0x5259a4], 1
xor eax, eax
push 0x4e4130
mov dword [0x52599c], 7
mov dword [0x525998], ebx
mov word [0x525988], ax
call fcn.00404cc1
add esp, 4
cmp byte [0x525984], bl
jne 0x483333
push ebx
push str.WerFault.exe
lea ecx, [ebp - 0x2c]
push 0x29
push ecx
mov byte [0x525984], 1
call fcn.00426fc0
add esp, 0x10
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], ebx
je 0x48331a
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4832fe
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48331a
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x2c]
push edx
mov ecx, 0x525988
call fcn.00406640
cmp dword [ebp - 0x18], 8
mov dword [ebp - 4], 0xffffffff
jb 0x483333
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406ca9
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 0x525988
mov ecx, esi
call fcn.00406640
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 0x483370
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4deff8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x522638]
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 [0x5259c8], 1
mov dword [ebp - 0x30], ebx
jne 0x4833d7
or dword [0x5259c8], 1
xor eax, eax
push 0x4e4170
mov dword [0x5259c0], 7
mov dword [0x5259bc], ebx
mov word [0x5259ac], ax
call fcn.00404cc1
add esp, 4
cmp byte [0x5259a8], bl
jne 0x483443
push ebx
push str.DWwin.exe
lea ecx, [ebp - 0x2c]
push 0x25
push ecx
call fcn.00426fc0
add esp, 0x10
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], ebx
je 0x483423
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x483407
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x483423
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x2c]
push edx
mov ecx, 0x5259ac
call fcn.00406640
cmp dword [ebp - 0x18], 8
mov byte [0x5259a8], 1
mov dword [ebp - 4], 0xffffffff
jb 0x483443
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406ca9
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 0x5259ac
mov ecx, esi
call fcn.00406640
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 0x485890
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x522638]
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 0x4859b9
cmp word [eax], 0
je 0x4859b9
cmp edi, 1
jbe 0x4859b9
push str.8895b1c6_b41f_4c1c_a562_0d564250836f
push eax
push str.._sShellEx_s
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.004089f0
add esp, 0x14
test eax, eax
js 0x4859a7
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 0x4859a7
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.004b8020
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 0x48599a
cmp word [esi], ax
je 0x485998
lea esp, [esp]
movzx edx, word [esi]
push edx
call fcn.004b9286
add esp, 4
test eax, eax
je 0x48598f
movzx eax, word [esi]
push eax
call fcn.004b9d9f
add esp, 4
mov word [esi], ax
add esi, 2
cmp word [esi], 0
jne 0x485970
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