joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452bc0
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 0x4d74b4
push eax
mov byte [edi], 0
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x452bfd
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x468
ret 8
lea ecx, [esp + 0x20]
push ecx
call fcn.00451fe0
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 0x452c47
test eax, eax
je 0x452c59
push eax
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00452010
add esp, 0xc
jmp 0x452c12
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.004520c0
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 0x452c73
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 0x452db0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x400
push ebx
push esi
push edi
mov esi, ecx
call fcn.00452d50
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 0x4d8e48
push 0x4c1864
call ebx
push edi
push 0x6d
push 0x4d8e44
push 0x4c1864
mov dword [esi + 4], eax
call ebx
push edi
push 0x6d
push 0x4d8e40
push 0x4c1864
mov dword [esi + 8], eax
call ebx
push edi
push 1
push 0x4d8e3c
push 0x4c1864
mov dword [esi + 0xc], eax
call ebx
mov dword [esi + 0x10], eax
push edi
lea eax, [esp + 0x10]
push 0x400
push eax
push 0x4db948
push str.Addr
push 0x4c1864
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esi + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
call fcn.00452eb0
add esp, 8
push edi
push 3
push 0x4d8e30
push 0x4c1864
call ebx
mov dword [esi + 0x24], eax
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x400
ret 4
Function at 0x45324b
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b70bb
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 0x4d8e64
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 0x453a70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4b7138
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 0x453afb
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFile::GetLength
mov ebp, eax
test ebp, ebp
je 0x453afb
push ebp
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x1c], esi
je 0x453afb
push ebp
push esi
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CFile::Read
test eax, eax
je 0x453af2
push ebp
push esi
mov ecx, ebx
call fcn.00453c90
test al, al
jne 0x453b22
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], 0xffffffff
call fcn.0045535c
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.00453850
lea edi, [esi + 4]
lea eax, [esi + ebp - 4]
cmp edi, eax
mov dword [esp + 0x1c], eax
jae 0x453c5d
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 [0x4dc7ac]
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 0x453b82
mov eax, dword [esi + 0xc]
mov ebp, esi
cmp ecx, eax
setb al
test al, al
je 0x453b7b
mov esi, dword [esi]
jmp 0x453b7e
mov esi, dword [esi + 8]
cmp esi, edx
jne 0x453b69
mov cl, byte [ebx + 8]
test cl, cl
je 0x453bac
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.004541b0
push eax
jmp 0x453c36
test al, al
mov dword [esp + 0x14], ebp
je 0x453bf8
lea eax, [esp + 0x28]
mov ecx, ebx
push eax
call fcn.00449ae0
mov ecx, dword [esp + 0x14]
mov edx, dword [eax]
cmp ecx, edx
sete al
test al, al
je 0x453bef
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.004541b0
push eax
jmp 0x453c36
lea ecx, [esp + 0x14]
call fcn.00454420
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
mov eax, dword [edx + 0xc]
cmp eax, ecx
jae 0x453c27
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.004541b0
push eax
jmp 0x453c36
lea ecx, [esp + 0x13]
lea edx, [esp + 0x14]
push ecx
mov byte [esp + 0x17], 0
push edx
lea ecx, [esp + 0x44]
call fcn.00454190
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 0x453b3d
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.0045535c
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 0x455c40
Capabilities:
Check if file exists
Get file attributes

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

Disassembly:
sub esp, 0x104
push ebx
push ebp
mov ebp, dword [esp + 0x110]
push esi
test ebp, ebp
push edi
jne 0x455f22
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 0x455f8d
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.00455c40
add esp, 4
test eax, eax
jne 0x455f7a
lea edx, [esp + 0x10]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x455fd1
inc ebx
push 0x5c
push ebx
call dword [sym.imp.MSVCRT.dll__mbschr]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x455f34
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.00455c40
add esp, 4
test eax, eax
jne 0x455fde
lea edx, [esp + 0x10]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x455fde
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 0x456420
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 0x456482
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 0x45645b
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 0x4564d7
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 0x45649c
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 0x4564e0
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 0x456f10
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 0x456f31
mov eax, dword [esp + 0x38]
shr eax, 5
je 0x456f56
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 0x456fa3
xor edi, edi
jmp 0x456fa4
inc edi
mov edx, dword [esp + 0x38]
dec edx
mov dword [esp + 0x38], edx
jne 0x456f6b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x456fc0
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 0x45700e
mov edi, 0x4d9510
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.00456f10
mov ecx, dword [esp + 0x58]
xor ebp, ebp
cmp ecx, 0x10
mov ebx, ecx
jl 0x457063
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.00456650
add edi, 0x10
dec esi
jne 0x45702d
mov ecx, dword [esp + 0x58]
shl ebp, 4
test ebx, ebx
jle 0x45707c
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 0x457071
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x40
ret 8

Function at 0x457090
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 0x4570de
mov edi, 0x4d9510
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.00456f10
mov ecx, dword [esp + 0x58]
xor ebp, ebp
cmp ecx, 0x10
mov ebx, ecx
jl 0x457133
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.00456b00
add edi, 0x10
dec esi
jne 0x4570fd
mov ecx, dword [esp + 0x58]
shl ebp, 4
test ebx, ebx
jle 0x45714c
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 0x457141
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x40
ret 8
Function at 0x457ba0
Capabilities:
Query service status

Disassembly:
push 0xffffffffffffffff
push 0x4b723b
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 0x457c7d
push 1
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebp
je 0x457cd7
push ebx
push esi
push 0x4d979c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push 0x4d9584
lea ecx, [esp + 0x14]
call fcn.0045526c
push 0x4d9798
lea ecx, [esp + 0x14]
call fcn.0045526c
push 0x4d9794
lea ecx, [esp + 0x14]
call fcn.0045526c
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 0x457c76
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x457c73
cmp dword [esp + 0x18], 4
jne 0x457c73
mov ebp, 1
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
jmp 0x457cd7
push str..S
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_1
push 0x4d9584
lea ecx, [esp + 0xc]
call fcn.0045526c
push 0x4d9798
lea ecx, [esp + 0xc]
call fcn.0045526c
push 0x4d9794
lea ecx, [esp + 0xc]
call fcn.0045526c
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 0x457cd0
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 0x457d10
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4b7275
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 0x457d44
mov eax, 0x4db948
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 0x457d8f
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 0x457df7
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 0x457dc7
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x457de0
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 0x4587c0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b74f8
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 0x4db948
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 8]
test al, al
jne 0x458818
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 0x45886f
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 0x4588c9
mov edx, dword [esp + 0x64]
push edx
call fcn.004560b0
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 0x4588f3
cmp al, 0x2c
je 0x4588f3
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4588e7
cmp byte [esi], 0x2c
jne 0x458921
inc esi
push esi
call ebx
mov ebp, eax
mov al, byte [esi]
add esp, 4
test al, al
je 0x458913
cmp al, 0x2c
je 0x458913
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x458907
cmp byte [esi], 0x2c
jne 0x458921
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 0x458960
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b7518
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 0x4db948
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp]
test al, al
je 0x458a0e
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 0x4589eb
cmp al, 0x2c
je 0x4589eb
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4589df
cmp byte [esi], 0x2c
jne 0x4589fa
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
Function at 0x459130
Capabilities:
Get session user name
Set socket configuration

Disassembly:
sub esp, 0x20c
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x294]
test eax, eax
jle 0x45914a
mov dword [esp + 0x218], eax
push ebx
mov ebx, dword [esp + 0x218]
push esi
push edi
push ebx
call sub.WSOCK32.dll_inet_addr
mov esi, eax
xor edi, edi
cmp esi, 0xffffffff
jne 0x459174
push str.0.0.0.1
call sub.WSOCK32.dll_inet_addr
mov esi, eax
mov edi, 1
mov eax, dword [esp + 0x224]
mov byte [esp + 0x1c], 4
push eax
mov byte [esp + 0x21], 1
call sub.WSOCK32.dll_htons
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push edx
mov word [esp + 0x26], ax
mov dword [esp + 0x28], esi
mov dword [esp + 0x18], 0x100
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x4591bc
mov byte [esp + 0x24], al
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
test edi, edi
lea edx, [esp + eax + 0x24]
je 0x4591f7
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
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
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [edx + ecx + 1]
mov eax, dword [ebp]
lea ecx, [esp + 0x1c]
sub edx, ecx
push 0
push edx
lea edx, [esp + 0x24]
push edx
mov ecx, ebp
call dword [eax + 0x20]
pop edi
pop esi
test eax, eax
pop ebx
jne 0x45921e
pop ebp
add esp, 0x20c
ret 8
push 0
lea eax, [esp + 0xc]
push 8
push eax
mov ecx, ebp
call fcn.0045a9d0
test eax, eax
jne 0x45923c
pop ebp
add esp, 0x20c
ret 8
mov cl, byte [esp + 9]
xor eax, eax
cmp cl, 0x5a
pop ebp
sete al
add esp, 0x20c
ret 8