joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c9c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
xor al, al
cmp dword [esi + 0x10], 0
push edi
mov edi, dword [ebp + 0xc]
je 0x46cab0
mov ecx, esi
call fcn.0041a2d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46cac1
mov ecx, esi
call fcn.0041a2d0
push eax
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
je 0x46cac1
push 0
push str.ime_shared
lea eax, [ebp - 0x3c]
push 0x25
push eax
call fcn.00429c80
push 0
push str.ime_shared
lea ecx, [ebp - 0x20]
push 0x24
push ecx
call fcn.00429c80
push ebx
push edi
lea edx, [ebp - 0x3c]
push esi
push edx
call fcn.0046c5f0
add esp, 0x30
test al, al
jne 0x46ca71
push ebx
push edi
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.0046c5f0
add esp, 0x10
test al, al
jne 0x46ca71
push ebx
push edi
push esi
call fcn.0046c6e0
add esp, 0xc
test al, al
jne 0x46ca71
xor bl, bl
jmp 0x46ca73
mov bl, 1
mov esi, 8
cmp dword [ebp - 0xc], esi
jb 0x46ca89
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406ec9
add esp, 4
xor edx, edx
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], dx
cmp dword [ebp - 0x28], esi
jb 0x46caae
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00406ec9
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call int.00401316
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call int.00401316
mov esp, ebp
pop ebp
ret
Function at 0x470cb0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x208], 0
mov eax, dword [esi]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 1
je 0x470cf2
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call int.00401316
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [esi + 8]
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x210]
push ecx
push 2
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x20c], eax
call edi
cmp eax, 0x102
je 0x470d83
cmp eax, 0x80
je 0x470d83
cmp eax, 0x81
je 0x470d83
test eax, eax
je 0x470d83
mov edx, dword [esi]
lea ecx, [ebp - 0x208]
push ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x208], 0
mov eax, dword [edx]
push 0x200
lea edx, [ebp - 0x204]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x470d96
cmp dword [ebp - 0x208], 0x200
jne 0x470d96
mov edx, dword [esi]
mov eax, dword [edx + 4]
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_SuspendThread]
test eax, eax
je 0x470da6
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call int.00401316
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x470d83
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x470d83
test bl, bl
jne 0x470df8
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, dword [esi + 8]
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x210]
push edx
push 2
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x20c], ecx
call edi
cmp eax, 0x102
jne 0x470d23
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call int.00401316
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
mov al, 1
pop esi
call int.00401316
mov esp, ebp
pop ebp
ret
Function at 0x4791f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503e5b
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x54e938]
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.004044f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
mov ecx, eax
call fcn.00413740
test al, al
je 0x47936f
call fcn.004127a0
mov edi, eax
test edi, edi
je 0x47936f
test esi, esi
je 0x47936f
cmp word [esi], 0
je 0x47936f
push esi
lea ecx, [ebp - 0x234]
call fcn.00408940
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x4792c3
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x102
ja 0x4792c3
push esi
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4792c3
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.00418650
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.00481d00
push 0x30
lea edx, [ebp - 0x264]
push 0
push edx
mov dword [ebp - 0x268], 0
call fcn.004e15a0
add esp, 0xc
cmp dword [ebp - 0x220], 8
jb 0x479318
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x270], eax
jmp 0x479324
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 0xf4
push ecx
call fcn.004748f0
add esp, 0x18
lea ecx, [ebp - 0x234]
test eax, eax
je 0x47938e
call fcn.0040a2c0
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 int.00401316
mov esp, ebp
pop ebp
ret 0xc
call fcn.0040a2c0
mov eax, 1
jmp 0x479371

Function at 0x47dff1
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x47e00a
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 0x47e01b
push eax
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov dword [esi + 8], ebx
cmp dword [esi + 0x1c], ebx
je 0x47e048
cmp dword [esi + 0x20], 8
push edi
lea edi, [esi + 0xc]
jb 0x47e02e
mov eax, dword [edi]
jmp 0x47e030
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], ebx
jb 0x47e042
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 0x47efb0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x54e938]
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 0x47efe0
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 0x47eff1
push eax
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov dword [esi + 8], ebx
cmp dword [esi + 0x1c], ebx
je 0x47f01e
cmp dword [esi + 0x20], 8
push edi
lea edi, [esi + 0xc]
jb 0x47f004
mov eax, dword [edi]
jmp 0x47f006
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], ebx
jb 0x47f018
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 0x47f0cf
lea edx, [ebp - 0x20c]
push edx
push ebx
push 0x52671c
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x47f0cf
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 0x47f0a2
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
lea ecx, [esi + 0xc]
push eax
call fcn.00406300
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 int.00401316
mov esp, ebp
pop ebp
ret
Function at 0x487fa0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x54e938]
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 0x487fc8
mov dword [edi], 0
test esi, esi
je 0x4880dd
cmp dword [esi + 0x10], 0
je 0x4880dd
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x234], eax
cmp eax, 0xffffffff
je 0x4880ca
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.004e15a0
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 0x4880bd
lea ecx, [ecx]
xor eax, eax
mov ecx, esi
mov word [ebp - 6], ax
call fcn.0041a2d0
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004086e6
add esp, 8
test eax, eax
sete bl
test bl, bl
je 0x48805a
test edi, edi
jne 0x4880b5
push 0x22c
lea edx, [ebp - 0x230]
push 0
push edx
call fcn.004e15a0
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
test bl, bl
jne 0x4880bd
mov ecx, dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push eax
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x488030
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 int.00401316
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 int.00401316
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call int.00401316
mov esp, ebp
pop ebp
ret
Function at 0x48b460
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504931
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x54e938]
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 esi, dword [ebp + 8]
xor ebx, ebx
lea eax, [ebp - 0x34]
push eax
push ebx
push str.open
push 0x50ea80
mov dword [ebp - 0x3c], ebx
mov edi, dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
push 2
push ebx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], ebx
call edi
cmp eax, 1
jne 0x48b59d
mov eax, dword [ebp - 0x34]
cmp eax, ebx
jbe 0x48b59d
cmp eax, 0x104
jae 0x48b4d6
mov eax, 0x104
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x3c]
push ecx
inc eax
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
call fcn.0041fde0
mov esi, dword [ebp - 0x4c]
lea edx, [ebp - 0x34]
push edx
push esi
push str.open
push 0x50ea80
push 2
push 0x20
mov dword [ebp - 4], ebx
call edi
test eax, eax
jne 0x48b586
push esi
lea ecx, [ebp - 0x2c]
call fcn.00408940
lea eax, [ebp - 0x2c]
push ebx
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x3c], 1
call fcn.00416c50
add esp, 8
test al, al
jne 0x48b54e
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48b54e
push esi
call dword [sym.imp.SHELL32.dll_PathIsExe]
mov byte [ebp - 0x2d], 1
test eax, eax
jne 0x48b551
mov byte [ebp - 0x2d], bl
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.0040a2c0
cmp byte [ebp - 0x2d], bl
je 0x48b586
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp eax, ebx
je 0x48b586
cmp word [eax], bx
je 0x48b586
mov esi, dword [ebp - 0x38]
push eax
mov ecx, esi
call fcn.00408940
lea ecx, [ebp - 0x4c]
call fcn.0041a760
jmp 0x48b5b9
mov dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x48b59a
push esi
call fcn.00406ec9
add esp, 4
mov esi, dword [ebp - 0x38]
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push ebx
mov word [esi], cx
push 0x50d97c
mov ecx, esi
call fcn.00406300
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 int.00401316
mov esp, ebp
pop ebp
ret
Function at 0x48b700
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x54e938]
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 - 0x41a]
push ecx
mov dword [ebp - 0x420], 0
mov word [ebp - 0x41c], ax
call fcn.004e15a0
add esp, 0xc
push edi
push 0
push 0x410
xor bl, bl
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x48b7cc
xor edx, edx
push 0x208
push edx
lea eax, [ebp - 0x20e]
push eax
mov word [ebp - 0x210], dx
call fcn.004e15a0
add esp, 0xc
push 0x105
lea ecx, [ebp - 0x210]
push ecx
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x48b7bb
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.00418909
add esp, 0x24
test eax, eax
jne 0x48b7bb
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x41c]
test bl, bl
jne 0x48b7d1
mov edx, 0x50d97c
xor ecx, ecx
mov eax, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48b7f0
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.00406300
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call int.00401316
mov esp, ebp
pop ebp
ret
Function at 0x497e70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506328
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x54e938]
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 esi, ecx
lea eax, [esi + 0x18]
push eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov dword [ebp - 4], eax
mov byte [ebp - 0x49], al
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
mov edi, dword [esi]
mov ecx, dword [esi + 4]
mov ebx, dword [esi + 0x10]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ebp - 4], 1
cmp ebx, eax
jae 0x497f7c
lea ecx, [ebx*8]
sub ecx, ebx
add ecx, ecx
add ecx, ecx
mov dword [ebp - 0x54], ecx
jmp 0x497f03
mov ecx, dword [ebp - 0x54]
cmp eax, ebx
jbe 0x49802d
add edi, ecx
push 0x52843c
lea ecx, [ebp - 0x48]
push edi
push ecx
call fcn.00429440
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0040e6b0
cmp dword [ebp - 0x34], 8
mov byte [ebp - 4], 1
jb 0x497f46
mov edx, dword [ebp - 0x48]
push edx
call fcn.00406ec9
add esp, 4
mov edi, dword [esi]
mov ecx, dword [esi + 4]
add dword [ebp - 0x54], 0x1c
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
cmp ebx, eax
jb 0x497f00
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x497f7c
push 0xffffffffffffffff
dec eax
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041a8e0
xor esi, esi
mov dword [ebp - 0x50], esi
cmp dword [ebp - 0x1c], esi
jbe 0x497fe0
push esi
lea eax, [ebp - 0x50]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SOFTWAREAdobeAcrobat_Reader11.0Privileged
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x497fe0
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x497fb4
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [ebp - 0x50]
push 1
push esi
push str.tHostWhiteList
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x497fd6
mov byte [ebp - 0x49], 1
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0x497ff2
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00406ec9
add esp, 4
mov ecx, dword [ebp - 0x58]
xor eax, eax
push ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp - 0x49]
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 int.00401316
mov esp, ebp
pop ebp
ret 4
push str.invalid_vector_T__subscript
call fcn.004df9e5
int3
Function at 0x49a9f0
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 0x49aa38
cmp dword [esi + 0x14], 8
jb 0x49aa0a
mov eax, dword [esi]
jmp 0x49aa0c
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49aa38
cmp dword [esi + 0x14], 8
jb 0x49aa1f
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 0x49aa40
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50680b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x54e938]
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 0x49aa85
mov al, 1
jmp 0x49abff
cmp dword [esi + 0x14], 8
mov byte [ebp - 0x239], 0
jb 0x49aa96
mov eax, dword [esi]
jmp 0x49aa98
mov eax, esi
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x49aab7
cmp eax, 0x50
je 0x49aab7
cmp eax, 0xb7
jne 0x49abf9
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x21a]
push ecx
mov word [ebp - 0x21c], ax
call fcn.004e15a0
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.00406960
mov eax, dword [ebp - 0x238]
mov esi, 8
mov dword [ebp - 4], 0
cmp dword [ebp - 0x224], esi
jae 0x49ab21
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 0x49abe1
cmp dword [ebp - 0x224], esi
mov esi, dword [ebp - 0x238]
jae 0x49ab4b
lea esi, [ebp - 0x238]
lea eax, [ebp - 0x21c]
mov ecx, eax
xor edi, edi
mov edx, 0x105
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffef9]
test ecx, ecx
je 0x49ab7e
movzx ecx, word [esi + eax]
test cx, cx
je 0x49ab7e
mov word [eax], cx
add eax, 2
dec edx
jne 0x49ab60
jmp 0x49ab82
test edx, edx
jne 0x49ab8a
sub eax, 2
mov edi, 0x8007007a
xor edx, edx
mov word [eax], dx
test edi, edi
js 0x49abe1
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x49abe1
push 0x5270e8
push 0x105
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00429b90
test eax, eax
js 0x49abe1
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 0x49abf9
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.00406ec9
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 int.00401316
mov esp, ebp
pop ebp
ret 4
Function at 0x49ad90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x41c], ebx
test byte [0x551b84], 1
push esi
mov esi, dword [ebp + 8]
jne 0x49ade5
or dword [0x551b84], 1
xor eax, eax
push 0x50ccb0
mov dword [0x551b7c], 7
mov dword [0x551b78], ebx
mov word [0x551b68], ax
call fcn.00404f03
add esp, 4
cmp byte [0x551b64], bl
jne 0x49aeae
lea ecx, [ebp - 0x418]
push ecx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionAeDebug
push 0x80000002
mov byte [0x551b64], 1
mov dword [ebp - 0x418], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x49aeae
push 0x410
lea edx, [ebp - 0x414]
push ebx
push edx
mov dword [ebp - 0x41c], ebx
call fcn.004e15a0
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 0x49aea1
lea eax, [ebp - 0x414]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x49ae80
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x414]
push ecx
mov ecx, 0x551b68
call fcn.00406300
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 0x551b68
mov ecx, esi
mov word [esi], ax
call fcn.00406960
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call int.00401316
mov esp, ebp
pop ebp
ret
Function at 0x49b5d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5069d2
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x54e938]
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
mov dword [ebp - 0x23c], ebx
test esi, esi
je 0x49b692
cmp word [esi], bx
je 0x49b692
xor eax, eax
mov word [ebp - 0x234], ax
mov eax, esi
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49b633
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.00406300
lea ecx, [ebp - 0x234]
push 0
mov ebx, 1
push ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x23c], ebx
call fcn.00416c50
add esp, 8
test al, al
jne 0x49b692
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49b692
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov byte [ebp - 0x235], bl
test eax, eax
jne 0x49b699
mov byte [ebp - 0x235], 0
test bl, 1
je 0x49b6b6
cmp dword [ebp - 0x220], 8
jb 0x49b6b6
mov edx, dword [ebp - 0x234]
push edx
call fcn.00406ec9
add esp, 4
cmp byte [ebp - 0x235], 0
je 0x49b714
push esi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00402c49
add esp, 0xc
test eax, eax
jne 0x49b714
push str.Common
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x49b714
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49b714
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x49b714
mov al, 1
jmp 0x49b716
xor al, al
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 int.00401316
mov esp, ebp
pop ebp
ret