joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451296
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x4b6fa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_5
mov eax, dword [esi + 0x2e8]
lea ecx, [esp + 8]
push eax
push str._sglacm.dll
push ecx
mov dword [esp + 0x20], 0
call sub.MFC42.DLL_CString::Format_1
mov edx, dword [esp + 0x14]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x280], eax
jne 0x4512fd
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
push eax
call edi
test eax, eax
mov dword [esi + 0x28c], eax
jne 0x451336
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov eax, dword [esi + 0x280]
push 2
push eax
call edi
test eax, eax
mov dword [esi + 0x290], eax
jne 0x45136f
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esi + 0x280]
push 3
push ecx
call edi
test eax, eax
mov dword [esi + 0x284], eax
jne 0x4513a8
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov edx, dword [esi + 0x280]
push 4
push edx
call edi
test eax, eax
mov dword [esi + 0x288], eax
jne 0x4513e1
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov eax, dword [esi + 0x280]
push 5
push eax
call edi
test eax, eax
mov dword [esi + 0x294], eax
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 8]
jne 0x45141a
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x451ee0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x452ac0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x468
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x480]
push 0x4d74d4
push eax
mov byte [edi], 0
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x452afd
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x468
ret 8
lea ecx, [esp + 0x20]
push ecx
call fcn.00451ee0
mov esi, dword [sym.imp.MSVCRT.dll_fread]
add esp, 4
mov bl, 0x20
push ebp
push 0x400
lea edx, [esp + 0x80]
push 1
push edx
call esi
mov cl, byte [ebp + 0xc]
add esp, 0x10
test bl, cl
jne 0x452b47
test eax, eax
je 0x452b59
push eax
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00451f10
add esp, 0xc
jmp 0x452b12
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x468
ret 8
lea edx, [esp + 0x20]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00451fc0
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
xor esi, esi
xor ecx, ecx
mov cl, byte [esp + esi + 0x10]
push ecx
push str._02X
push edi
call ebx
add esp, 0xc
add edi, 2
inc esi
cmp esi, 0x10
jl 0x452b73
mov edx, dword [esp + 0x480]
push ebp
mov byte [edx + 0x20], 0
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x468
ret 8

Function at 0x452cb0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x400
push ebx
push esi
push edi
mov esi, ecx
call fcn.00452c50
mov edi, dword [esp + 0x410]
mov ecx, esi
push edi
call sub.MFC42.DLL_CString::operator_1
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push edi
push 1
push 0x4d8e68
push 0x4c186c
call ebx
push edi
push 0x6d
push 0x4d8e64
push 0x4c186c
mov dword [esi + 4], eax
call ebx
push edi
push 0x6d
push 0x4d8e60
push 0x4c186c
mov dword [esi + 8], eax
call ebx
push edi
push 1
push 0x4d8e5c
push 0x4c186c
mov dword [esi + 0xc], eax
call ebx
mov dword [esi + 0x10], eax
push edi
lea eax, [esp + 0x10]
push 0x400
push eax
push 0x4db968
push str.Addr
push 0x4c186c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esi + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
call fcn.00452db0
add esp, 8
push edi
push 3
push 0x4d8e50
push 0x4c186c
call ebx
mov dword [esi + 0x24], eax
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x400
ret 4
Function at 0x45314b
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b708b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push esi
mov esi, ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_5
lea eax, [esp + 8]
push 0x104
push eax
push 0
mov dword [esp + 0x120], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [esp + 8]
push str.LangRsc.ini
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 8]
lea ecx, [esp + 4]
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 4]
push ecx
push 0
push 0x4d8e84
push str.UASI
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 4]
mov dword [esi], eax
mov dword [esp + 0x114], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10c]
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x453970
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4b7108
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
mov ebx, ecx
push ebp
push esi
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFile::CFile
mov eax, dword [esp + 0x60]
push 0
push 0
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], 0
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x4539fb
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFile::GetLength
mov ebp, eax
test ebp, ebp
je 0x4539fb
push ebp
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x1c], esi
je 0x4539fb
push ebp
push esi
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CFile::Read
test eax, eax
je 0x4539f2
push ebp
push esi
mov ecx, ebx
call fcn.00453b90
test al, al
jne 0x453a22
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], 0xffffffff
call fcn.0045527c
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 4
push edi
mov ecx, ebx
call fcn.00453750
lea edi, [esi + 4]
lea eax, [esi + ebp - 4]
cmp edi, eax
mov dword [esp + 0x1c], eax
jae 0x453b5d
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov eax, dword [ebx + 4]
add edi, 4
mov dword [esp + 0x18], edx
mov edx, dword [0x4dc7d4]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], 0
mov esi, dword [eax + 4]
mov ebp, eax
cmp esi, edx
mov al, 1
je 0x453a82
mov eax, dword [esi + 0xc]
mov ebp, esi
cmp ecx, eax
setb al
test al, al
je 0x453a7b
mov esi, dword [esi]
jmp 0x453a7e
mov esi, dword [esi + 8]
cmp esi, edx
jne 0x453a69
mov cl, byte [ebx + 8]
test cl, cl
je 0x453aac
lea eax, [esp + 0x64]
lea ecx, [esp + 0x34]
push eax
push ecx
push ebp
lea edx, [esp + 0x30]
push esi
push edx
mov ecx, ebx
mov byte [esp + 0x78], 1
call fcn.004540b0
push eax
jmp 0x453b36
test al, al
mov dword [esp + 0x14], ebp
je 0x453af8
lea eax, [esp + 0x28]
mov ecx, ebx
push eax
call fcn.0041a900
mov ecx, dword [esp + 0x14]
mov edx, dword [eax]
cmp ecx, edx
sete al
test al, al
je 0x453aef
lea edx, [esp + 0x11]
lea eax, [esp + 0x34]
push edx
push eax
push ebp
lea ecx, [esp + 0x38]
push esi
push ecx
mov ecx, ebx
mov byte [esp + 0x25], 1
call fcn.004540b0
push eax
jmp 0x453b36
lea ecx, [esp + 0x14]
call fcn.00454320
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
mov eax, dword [edx + 0xc]
cmp eax, ecx
jae 0x453b27
lea ecx, [esp + 0x12]
lea edx, [esp + 0x34]
push ecx
push edx
push ebp
lea eax, [esp + 0x3c]
push esi
push eax
mov ecx, ebx
mov byte [esp + 0x26], 1
call fcn.004540b0
push eax
jmp 0x453b36
lea ecx, [esp + 0x13]
lea edx, [esp + 0x14]
push ecx
mov byte [esp + 0x17], 0
push edx
lea ecx, [esp + 0x44]
call fcn.00454090
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
add edi, 4
mov dword [eax + 0x10], ecx
mov eax, dword [esp + 0x1c]
cmp edi, eax
jb 0x453a3d
mov esi, dword [esp + 0x20]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x44]
mov dword [esp + 0x5c], 0xffffffff
call fcn.0045527c
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 4
Function at 0x455b60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x455b69
ret
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret
Function at 0x455e20
Capabilities:
Create directory

Disassembly:
sub esp, 0x104
push ebx
push ebp
mov ebp, dword [esp + 0x110]
push esi
test ebp, ebp
push edi
jne 0x455e42
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
push 0x5c
push ebp
call dword [sym.imp.MSVCRT.dll__mbschr]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x455ead
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
mov esi, ebp
rep stosd dword es:[edi], eax
mov ecx, ebx
lea edi, [esp + 0x10]
sub ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call fcn.00455b60
add esp, 4
test eax, eax
jne 0x455e9a
lea edx, [esp + 0x10]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x455ef1
inc ebx
push 0x5c
push ebx
call dword [sym.imp.MSVCRT.dll__mbschr]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x455e54
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call fcn.00455b60
add esp, 4
test eax, eax
jne 0x455efe
lea edx, [esp + 0x10]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x455efe
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
Function at 0x456340
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
test eax, eax
mov al, byte [esi]
je 0x4563a2
mov cl, byte [esi + 4]
mov dl, byte [esi + 2]
mov byte [esi], cl
mov cl, byte [esi + 5]
mov byte [esi + 4], dl
mov dl, byte [esi + 9]
mov byte [esi + 2], cl
mov cl, byte [esi]
mov byte [esi + 5], dl
mov dl, byte [esi + 0xd]
mov byte [esi + 9], cl
mov cl, byte [esi + 0xb]
mov byte [esi + 0xb], al
mov byte [esi], dl
mov byte [esi + 0xd], cl
xor eax, eax
mov dl, byte [eax + esi + 1]
mov cl, byte [eax + esi]
xor cl, dl
mov byte [eax + esi], cl
inc eax
cmp eax, 0xe
jl 0x45637b
push 0xf
lea eax, [esi + 1]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov byte [esi], 0x20
pop esi
ret
cmp al, 0x20
jne 0x4563f7
push edi
lea edi, [esi + 1]
push 0xf
push edi
push esi
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov eax, 0xd
mov cl, byte [edi + eax]
mov dl, byte [eax + esi]
xor dl, cl
mov byte [eax + esi], dl
dec eax
jns 0x4563bc
mov dl, byte [esi + 0xd]
mov al, byte [esi + 0xb]
mov cl, byte [esi]
mov byte [esi + 0xb], dl
mov dl, byte [esi + 9]
mov byte [esi + 0xd], cl
mov cl, byte [esi + 5]
mov byte [esi], dl
mov dl, byte [esi + 2]
mov byte [esi + 9], cl
mov cl, byte [esi + 4]
mov byte [esi + 5], dl
mov dl, byte [esi]
mov byte [esi + 2], cl
mov byte [esi + 4], dl
mov byte [esi], al
pop edi
pop esi
ret

Function at 0x456400
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret

Function at 0x456e30
Capabilities:
Encrypt data using rc6

Disassembly:
sub esp, 0x20
push ebx
mov ebx, ecx
push ebp
push esi
lea eax, [ebx + 4]
push edi
mov dword [ebx + 0xb4], 1
mov ecx, 0x2b
mov dword [eax], 0xb7e15163
mov edx, dword [eax]
add eax, 4
sub edx, 0x61c88647
dec ecx
mov dword [eax], edx
jne 0x456e51
mov eax, dword [esp + 0x38]
shr eax, 5
je 0x456e76
mov esi, dword [esp + 0x34]
mov ecx, eax
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
dec eax
xor edi, edi
mov dword [esp + 0x34], eax
xor esi, esi
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x38], 0x84
mov ebp, dword [ebx + esi*4 + 4]
lea edx, [esi + 1]
add ebp, ecx
sub esi, 0x2b
add ebp, eax
rol ebp, 3
mov eax, ebp
mov ebp, dword [esp + edi*4 + 0x10]
add ecx, eax
mov dword [ebx + edx*4], eax
add ebp, ecx
rol ebp, cl
neg esi
sbb esi, esi
and esi, edx
mov edx, dword [esp + 0x34]
mov ecx, ebp
cmp edi, edx
mov dword [esp + edi*4 + 0x10], ecx
jne 0x456ec3
xor edi, edi
jmp 0x456ec4
inc edi
mov edx, dword [esp + 0x38]
dec edx
mov dword [esp + 0x38], edx
jne 0x456e8b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x456ee0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x40
mov edx, ecx
push ebx
push ebp
push esi
mov eax, dword [edx + 0xb4]
push edi
test eax, eax
mov dword [esp + 0x10], edx
jne 0x456f2e
mov edi, 0x4d9530
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xa0
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
push ecx
mov ecx, edx
call fcn.00456e30
mov ecx, dword [esp + 0x58]
xor ebp, ebp
cmp ecx, 0x10
mov ebx, ecx
jl 0x456f83
mov edi, dword [esp + 0x54]
mov esi, ecx
shr esi, 4
mov edx, esi
mov ebp, esi
shl edx, 4
sub ebx, edx
mov eax, edi
push edi
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x28], edx
call fcn.00456570
add edi, 0x10
dec esi
jne 0x456f4d
mov ecx, dword [esp + 0x58]
shl ebp, 4
test ebx, ebx
jle 0x456f9c
mov edx, dword [esp + 0x54]
lea eax, [edx + ebp]
mov dl, byte [eax]
xor dl, 0xeb
mov byte [eax], dl
inc eax
dec ebx
jne 0x456f91
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x40
ret 8

Function at 0x456fb0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x40
mov edx, ecx
push ebx
push ebp
push esi
mov eax, dword [edx + 0xb4]
push edi
test eax, eax
mov dword [esp + 0x10], edx
jne 0x456ffe
mov edi, 0x4d9530
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xa0
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
push ecx
mov ecx, edx
call fcn.00456e30
mov ecx, dword [esp + 0x58]
xor ebp, ebp
cmp ecx, 0x10
mov ebx, ecx
jl 0x457053
mov edi, dword [esp + 0x54]
mov esi, ecx
shr esi, 4
mov edx, esi
mov ebp, esi
shl edx, 4
sub ebx, edx
mov eax, edi
push edi
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x28], edx
call fcn.00456a20
add edi, 0x10
dec esi
jne 0x45701d
mov ecx, dword [esp + 0x58]
shl ebp, 4
test ebx, ebx
jle 0x45706c
mov edx, dword [esp + 0x54]
lea eax, [edx + ebp]
mov dl, byte [eax]
xor dl, 0xeb
mov byte [eax], dl
inc eax
dec ebx
jne 0x457061
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x40
ret 8
Function at 0x457ac0
Capabilities:
Query service status

Disassembly:
push 0xffffffffffffffff
push 0x4b720b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push ebp
lea eax, [esp + 0x24]
push edi
push eax
mov dword [esp + 0x2c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [esp + 8]
xor ebp, ebp
call sub.MFC42.DLL_CString::CString_5
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc4], ebp
cmp eax, 2
jne 0x457b9d
push 1
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebp
je 0x457bf7
push ebx
push esi
push 0x4d97bc
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push 0x4d95a4
lea ecx, [esp + 0x14]
call fcn.0045518c
push 0x4d97b8
lea ecx, [esp + 0x14]
call fcn.0045518c
push 0x4d97b4
lea ecx, [esp + 0x14]
call fcn.0045518c
mov ecx, dword [esp + 0x10]
push 4
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, ebp
je 0x457b96
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x457b93
cmp dword [esp + 0x18], 4
jne 0x457b93
mov ebp, 1
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
jmp 0x457bf7
push str..S
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_1
push 0x4d95a4
lea ecx, [esp + 0xc]
call fcn.0045518c
push 0x4d97b8
lea ecx, [esp + 0xc]
call fcn.0045518c
push 0x4d97b4
lea ecx, [esp + 0xc]
call fcn.0045518c
mov eax, dword [esp + 8]
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x457bf0
mov ebp, 1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 8]
mov dword [esp + 0xc4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xbc]
mov eax, ebp
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0xc0
ret
Function at 0x457c30
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4b7245
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x410
mov eax, dword [esp + 0x42c]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
mov dword [esp + 0x10], ebx
jne 0x457c64
mov eax, 0x4db968
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [esp + 0x430]
lea eax, [esp + 0x14]
push eax
mov edi, 1
push ecx
push bind
mov dword [esp + 0x430], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x457caf
mov esi, dword [esp + 0x42c]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x10], edi
jmp 0x457d17
mov edx, dword [esp + 0x434]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
push ecx
push ebx
push ebx
push edx
push eax
mov dword [esp + 0x30], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x457ce7
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x457d00
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
mov esi, dword [esp + 0x42c]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x10], edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x424], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x41c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x41c
ret
Function at 0x4586e0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b74c8
push eax
mov eax, dword [esp + 0x1c]
mov dword fs:[0], esp
mov edx, dword [esp + 0x14]
sub esp, 0x40
lea ecx, [esp]
push ebp
push esi
push eax
mov eax, dword [esp + 0x5c]
push 0x40
push ecx
push 0x4db968
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 8]
test al, al
jne 0x458738
mov eax, dword [esp + 0x60]
pop esi
pop ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
lea ecx, [esp + 0x64]
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esp + 8]
xor ebp, ebp
push ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x54], ebp
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x64]
cmp dword [eax - 8], 2
jge 0x45878f
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
lea ecx, [esp + 0x64]
mov esi, eax
mov dword [esp + 0x50], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
push 0x2c
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
jne 0x4587e9
mov edx, dword [esp + 0x64]
push edx
call fcn.00455fd0
mov esi, eax
mov ecx, eax
and esi, 0xff
and eax, 0xff00
shl esi, 0x10
sar ecx, 0x10
add esi, ecx
add esp, 4
lea ecx, [esp + 0x64]
add esi, eax
mov dword [esp + 0x50], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
mov esi, dword [esp + 0x64]
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_atoi]
push edi
push esi
call ebx
mov dword [esp + 0x68], eax
mov al, byte [esi]
add esp, 4
xor edi, edi
test al, al
je 0x458813
cmp al, 0x2c
je 0x458813
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x458807
cmp byte [esi], 0x2c
jne 0x458841
inc esi
push esi
call ebx
mov ebp, eax
mov al, byte [esi]
add esp, 4
test al, al
je 0x458833
cmp al, 0x2c
je 0x458833
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x458827
cmp byte [esi], 0x2c
jne 0x458841
inc esi
push esi
call ebx
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x6c]
shl edi, 8
add edi, ebp
mov dword [esp + 0x58], 0xffffffff
shl edi, 8
add edi, eax
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x50]
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x4c
ret
Function at 0x458880
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b74e8
push eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x40
lea ecx, [esp]
push eax
mov eax, dword [esp + 0x54]
push 0x40
push ecx
push 0x4db968
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp]
test al, al
je 0x45892e
push ebx
push esi
push edi
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esp + 0xc]
mov dword [esp + 0x54], 0
push ecx
lea ecx, [esp + 0x6c]
call sub.MFC42.DLL_CString::operator_1
mov esi, dword [esp + 0x68]
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
push esi
call edi
mov ebx, dword [esp + 0x68]
add esp, 4
mov dword [ebx], eax
mov al, byte [esi]
test al, al
je 0x45890b
cmp al, 0x2c
je 0x45890b
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4588ff
cmp byte [esi], 0x2c
jne 0x45891a
inc esi
push esi
call edi
add esp, 4
mov dword [ebx + 4], eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x54], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret