joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d2f40
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x61094c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ecx + 0xc]
test edi, edi
je 0x4d2fc7
test esi, esi
je 0x4d2fc7
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.00556260
add esp, 0xc
mov dword [ebp - 0x88], 0x7f
lea eax, [ebp - 0x88]
push 0
push eax
lea eax, [ebp - 0x84]
push eax
push 0
push 5
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x4d2fc7
lea eax, [ebp - 0x84]
push eax
call fcn.0056018a
add esp, 4
mov dword [esi], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553daa
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.00553daa
mov esp, ebp
pop ebp
ret 4

Function at 0x4d2fe0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x4d2ff0
xor al, al
pop ebp
ret 0xc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
cmp eax, 1
sete al
pop ebp
ret 0xc
Function at 0x4dc230
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596375
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x61094c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor edx, eax
movzx eax, byte [ebx + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [ebx + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edi
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.004caad0
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4dc2c3
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [edi + 8], 0x71c71c7
je 0x4dc43b
lea eax, [edi + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
push 0x24
mov dword [ebp - 0x1c], 0
call fcn.00553fc1
mov ecx, dword [ebx]
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov edx, ecx
mov dword [esi + 0xc], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 7
lea eax, [edx + 2]
mov dword [ebp - 0x18], eax
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4dc320
sub edx, dword [ebp - 0x18]
sar edx, 1
push edx
push ecx
lea ecx, [esi + 0xc]
call fcn.00425810
mov dword [ebp - 4], 1
mov ecx, dword [edi + 8]
mov ebx, dword [edi + 0x1c]
movss xmm3, dword [edi]
lea eax, [ecx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movd xmm1, ebx
addsd xmm0, qword [eax*8 + 0x5e3010]
cvtdq2pd xmm1, xmm1
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x5e3010]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x4dc3da
divss xmm0, xmm3
call fcn.004a6f30
call fcn.005546b0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x4dc3b9
cmp ebx, 0x200
jae 0x4dc3b7
shl ebx, 3
cmp ebx, ecx
jae 0x4dc3b9
mov ebx, ecx
push ebx
mov ecx, edi
call fcn.004cac10
push dword [ebp - 0x14]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004caad0
mov ecx, dword [edi + 8]
mov edx, dword [eax]
jmp 0x4dc3dd
mov edx, dword [ebp - 0x28]
mov ebx, dword [edx + 4]
lea eax, [ecx + 1]
mov dword [edi + 8], eax
mov dword [esi], edx
mov dword [esi + 4], ebx
mov dword [ebx], esi
mov dword [edx + 4], esi
mov eax, dword [edi + 0x18]
and eax, dword [ebp - 0x14]
mov ecx, dword [edi + 0xc]
mov esi, dword [ebp - 0x20]
mov edi, dword [ecx + eax*8]
cmp edi, dword [esi]
mov esi, dword [ebp - 0x1c]
jne 0x4dc40b
mov dword [ecx + eax*8], esi
jmp 0x4dc41a
cmp edi, edx
jne 0x4dc414
mov dword [ecx + eax*8], esi
jmp 0x4dc41e
cmp dword [ecx + eax*8 + 4], ebx
jne 0x4dc41e
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push str.unordered_map_set_too_long
call fcn.0053ed72
int3
Function at 0x4dc989
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 8], esi
je 0x4dca1f
cmp dword [edi + 0xc], esi
je 0x4dca1f
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 8], esi
je 0x4dc9d8
test eax, eax
je 0x4dc9dc
push esi
push eax
push dword [ebp + 8]
push dword [edi + 0xc]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
lea ecx, [ebp - 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], vtable.McCryptoLib::CWinError.0
call fcn.004dc62a
test eax, eax
jne 0x4dc9e3
mov byte [edi + 4], 1
jmp 0x4dca1b
test eax, eax
je 0x4dc9ae
mov eax, reloc.OLEAUT32.dll_VariantCopyInd
jmp 0x4dca24
lea ecx, [ebp - 8]
call fcn.004dc62a
mov ecx, eax
call fcn.004dc561
push eax
push str.McCryptoLib::CMcCryptoHashWin::AddToHash
push 0x90
push str.E:BT6fe319c2_d716_427d_b487_43780f257bfaCoreTechMcCryptoLib_srcwindowswin_hash.cpp
push str.__S:__d____S___s:_Error_trying_to_add_data_for_hashing
push 2
call fcn.004dc642
add esp, 0x18
lea ecx, [ebp - 8]
call fcn.004dc62a
mov esi, eax
mov eax, esi
jmp 0x4dca24
mov eax, reloc.WS2_32.dll_listen
pop edi
pop esi
leave
ret 8

Function at 0x4dfbf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59684d
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x61094c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0x8000
push 0x5c2bf8
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jns 0x4dfc4d
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
test esi, esi
jne 0x4dfc62
xor ecx, ecx
jmp 0x4dfc76
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4dfc67
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 8]
push esi
call fcn.004de990
test esi, esi
je 0x4dfc8b
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4e0aa0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596a50
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x61094c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.CoreTech::CBaseIniReader.0
mov dword [ebp - 4], 0
call fcn.00422520
mov ebx, eax
test ebx, ebx
je 0x4e0c03
mov ecx, dword [ebx]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x5a0478]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [edi + 4], eax
mov dword [ebp - 4], 1
call fcn.00422520
mov ebx, eax
test ebx, ebx
je 0x4e0c03
mov ecx, dword [ebx]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x5a0478]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [edi + 8], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi], vtable.CoreTech::CObfuscatedIniReader.0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0x11
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0xa
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x20], 0x3f400000
mov dword [edi + 0x24], 0x3e800000
mov dword [edi + 0x28], 0x40100000
mov dword [edi + 0x2c], 0x26
mov dword [edi + 0x30], 0
mov al, byte [ebp + 8]
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0x11
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0xa
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x50], 0x3f400000
mov dword [edi + 0x54], 0x3e800000
mov dword [edi + 0x58], 0x40100000
mov dword [edi + 0x5c], 0x26
mov dword [edi + 0x60], 0
mov byte [edi + 0x74], al
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0042d820
int3
Function at 0x4e1db0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4e1deb
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0x8000
push 0x5c2bf8
call sub.SHELL32.dll_SHGetKnownFolderPath
mov esi, dword [ebp - 4]
test eax, eax
jns 0x4e1df8
test esi, esi
je 0x4e1deb
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
mov eax, 0x57
pop esi
mov esp, ebp
pop ebp
ret 8
push 0xffffffffffffffff
push esi
push dword [ebp + 0xc]
push edi
call fcn.0056051d
add esp, 0x10
mov edi, eax
test esi, esi
je 0x4e1e14
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4e2ca0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push esi
mov esi, ecx
test eax, eax
je 0x4e2d6e
xor ecx, ecx
cmp cx, word [eax]
je 0x4e2d6e
cmp dword [esi + 0x28], ecx
je 0x4e2cd0
mov eax, 0xb7
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push 0xa0
push edi
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x28], eax
test ecx, ecx
je 0x4e2d06
cmp ecx, 0xffffffff
je 0x4e2d06
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
jne 0x4e2d23
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov ebx, eax
mov dword [esi + 0x28], 0
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edi, 3
jne 0x4e2d40
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edi, 2
je 0x4e2d4a
cmp edi, 1
jne 0x4e2d63
push 0
lea ecx, [ebp - 8]
mov word [ebp - 4], 0xfeff
push ecx
push 2
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, 0x57
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4e4300
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
mov eax, dword [esi + 0x34]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
test eax, eax
je 0x4e432c
push 0x1b58
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [esi + 0x54]
mov ebx, 0x57
mov ecx, esi
call dword [0x5a0478]
mov ecx, dword [ebp - 4]
call esi
mov esi, dword [ebp - 4]
test al, al
je 0x4e43f9
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4e43f9
xor ecx, ecx
cmp cx, word [eax]
je 0x4e43f9
mov ecx, esi
call fcn.004e2d80
mov ebx, eax
test ebx, ebx
je 0x4e437b
cmp ebx, 0xb7
jne 0x4e43f9
lea eax, [ebp - 8]
mov ecx, esi
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004e1440
mov edi, dword [ebp - 8]
mov ebx, eax
test ebx, ebx
jne 0x4e43f9
test edi, edi
jne 0x4e43ab
lea ebx, [eax + 0xe]
jmp 0x4e43f9
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e43b0
sub ecx, edx
lea eax, [ebp - 0x10]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push edi
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test byte [esi + 0x44], 1
mov dword [ebp - 0xc], eax
je 0x4e43ed
xor ecx, ecx
cmp cx, word [edi]
je 0x4e43ed
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4e43f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0x28]
mov dword [esi + 0x28], 0
test eax, eax
je 0x4e4413
cmp eax, 0xffffffff
je 0x4e4413
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4e4420
push edi
call fcn.0055e8cd
add esp, 4
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4e442e
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4e7180
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59713d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x61094c]
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 ecx, dword [ebp + 0x10]
mov eax, ecx
mov ebx, dword [ebp + 8]
mov edi, ecx
xor edi, 8
and al, 8
cmove edi, ecx
test ebx, ebx
jne 0x4e71c5
xor eax, eax
jmp 0x4e7232
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0
push 0
push 0x5c2b88
call sub.SHELL32.dll_SHGetKnownFolderPath
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], 0
test eax, eax
jns 0x4e71f3
xor edi, edi
jmp 0x4e7225
push ebx
push esi
lea eax, [ebp - 0x28]
push 0x5bd3f4
push eax
call fcn.004ac0c0
add esp, 0x10
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.00424600
test esi, esi
je 0x4e7230
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00553daa
mov esp, ebp
pop ebp
ret

Function at 0x4e7860
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e7885
xor ecx, ecx
cmp cx, word [eax]
je 0x4e7885
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4e7885
test al, 0x10
je 0x4e7885
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x4e7da0
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59727d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x61094c]
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]
test esi, esi
je 0x4e7ec5
xor eax, eax
cmp ax, word [esi]
je 0x4e7ec5
mov ecx, 0x5bd418
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4e7e0d
test dx, dx
je 0x4e7e09
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4e7e0d
add eax, 4
add ecx, 4
test dx, dx
jne 0x4e7de7
xor eax, eax
jmp 0x4e7e12
sbb eax, eax
or eax, 1
test eax, eax
je 0x4e7ec5
mov ecx, 0x5c95c0
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4e7e47
test dx, dx
je 0x4e7e43
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4e7e47
add eax, 4
add ecx, 4
test dx, dx
jne 0x4e7e21
xor eax, eax
jmp 0x4e7e4c
sbb eax, eax
or eax, 1
test eax, eax
je 0x4e7ec5
push esi
call fcn.004e7860
add esp, 4
test al, al
je 0x4e7ec5
push esi
lea eax, [ebp - 0x28]
push str._s.
push eax
call fcn.004ac0c0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 4], 0
call fcn.004e73a0
add esp, 0x14
test al, al
jne 0x4e7e9b
lea ecx, [ebp - 0x28]
xor bl, bl
call fcn.00424600
mov al, bl
jmp 0x4e7ec7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
lea ecx, [ebp - 0x28]
setne bl
call fcn.00424600
mov al, bl
jmp 0x4e7ec7
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 fcn.00553daa
mov esp, ebp
pop ebp
ret
Function at 0x4e8460
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59668d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x61094c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.00422520
mov edi, eax
test edi, edi
je 0x4e8596
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x5a0478]
mov ecx, edi
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
xor edi, edi
nop dword [eax]
lea edx, [edi + 1]
test edx, edx
js 0x4e858c
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
jge 0x4e84e8
push edx
lea ecx, [ebp - 0x10]
call fcn.004d5750
mov esi, dword [ebp - 0x10]
cmp dword [esi - 4], 1
jle 0x4e84fc
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004d5610
mov esi, dword [ebp - 0x10]
push esi
push dword [esi - 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test edi, edi
je 0x4e8545
push dword [esi - 8]
push esi
call fcn.005606a9
add esp, 8
test eax, eax
js 0x4e858c
cmp eax, dword [esi - 8]
jg 0x4e858c
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp edi, dword [esi - 0xc]
ja 0x4e84c0
add esi, 0xfffffff0
push esi
call fcn.004df860
mov ebx, dword [ebp + 8]
add esp, 4
add eax, 0x10
mov dword [ebx], eax
jmp 0x4e8557
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0x5bb418
call fcn.004e0940
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4e8578
mov edi, dword [esi]
push esi
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x5a0478]
mov ecx, edi
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0042d820
push 0x80004005
call fcn.0042d820
int3

Function at 0x4e99a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
lea ecx, [ebp - 4]
mov dword [ebp - 8], ebx
call fcn.004d0e20
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
push edi
push dword [esi]
push dword [ebp + 0x10]
push 0
push dword [ebp - 4]
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
cmp ebx, 0xea
jne 0x4e9a13
push dword [esi]
call fcn.004697f0
mov dword [esi], 0
push 0x5af620
push dword [edi]
call fcn.0055466b
add esp, 0xc
mov dword [esi], eax
push edi
push eax
push dword [ebp + 0x10]
mov eax, dword [ebp - 8]
push 0
push dword [ebp - 4]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4e9a3a
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5a0478]
mov ecx, edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4e9a50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5974a5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x61094c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4e9b9a
mov ebx, dword [ebp + 0x14]
cmp ebx, 1
jb 0x4e9b9a
xor esi, esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], esi
cmp ecx, 1
jne 0x4e9aef
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
mov ecx, edx
call fcn.004e93b0
mov ebx, eax
test ebx, ebx
jne 0x4e9b0b
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
mov dword [ebp + 0x10], esi
lea eax, [ebx + 0x20]
push eax
mov dword [ebp - 0x1c], eax
call fcn.00554273
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 1
test edi, edi
jne 0x4e9b2d
lea ebx, [eax + 8]
jmp 0x4e9b72
cmp ecx, 7
jne 0x4e9acb
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
mov ecx, edx
call fcn.004e91f0
mov ebx, eax
test ebx, ebx
je 0x4e9ac2
mov esi, dword [ebp - 0x10]
push esi
call fcn.004697f0
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 0x18]
lea eax, [ebx + 0x20]
push eax
push edi
push dword [ebp + 0xc]
push ebx
push dword [ebp + 0x10]
call fcn.004e95c0
mov ebx, eax
test ebx, ebx
jne 0x4e9b72
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.004d0e20
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push edi
push 3
push ebx
push dword [ebp - 0x14]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x14]
mov ebx, eax
call fcn.004d0df0
push edi
call fcn.004697f0
add esp, 4
push esi
call fcn.004697f0
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4ed2f0
Capabilities:
Delete registry key

Disassembly:
mov dword [ecx], vtable.CoreTech::internal::CRegKeyImpl.0
jmp fcn.004ed320

Function at 0x4ed320
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x4ed35a
cmp byte [esi + 0xc], 0
je 0x4ed343
push 0x5bb418
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, dword [esi + 4]
mov byte [esi + 0xc], 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
pop esi
ret
xor eax, eax
mov dword [esi + 8], eax
pop esi
ret
Function at 0x4ee110
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x61094c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x214], ecx
push ebx
mov dword [ebp - 0x210], eax
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
cmp dword [ebp + 0x14], 0
je 0x4ee220
test eax, eax
jne 0x4ee220
push edi
xor edi, edi
push esi
nop word [eax + eax]
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.00556260
add esp, 0xc
mov dword [ebp - 0x20c], 0x100
lea eax, [ebp - 0x20c]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x204]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
test esi, esi
jne 0x4ee1f6
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x208]
push eax
push 0xf003f
push esi
lea eax, [ebp - 0x204]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4ee1fe
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x214]
push dword [ebp - 0x210]
push dword [ebp + 0xc]
push dword [ebp - 0x208]
call fcn.004ee110
push dword [ebp - 0x208]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4ee1fe
cmp esi, 0x103
je 0x4ee21c
inc edi
test esi, esi
je 0x4ee160
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553daa
mov esp, ebp
pop ebp
ret 0x10
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00553daa
mov esp, ebp
pop ebp
ret 0x10