joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467c78
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push 0xfa
lea eax, [ebp - 0x108]
push eax
push dword [0x4bbb68]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.0046802b
test al, al
je 0x467d77
push esi
push 2
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x467d76
push ebx
push edi
push esi
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x108]
push ecx
push 1
push 2
push 0x10
push 0xf01ff
mov ebx, str.Serv_U_FTP_Server
push ebx
mov edi, str.Serv_U
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x467d20
push 2
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x467d20
push ebx
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x108]
push eax
push 1
push 2
push 0x10
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
cmp dword [ebp - 4], esi
mov dword [ebp - 0xc], str.Provides_FTP_services_and_allows_remote_FTP_clients_to_connect_to_this_computer
je 0x467d5f
push str.ADVAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, esi
je 0x467d5f
push str.ChangeServiceConfig2A
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x467d58
lea ecx, [ebp - 0xc]
push ecx
push 1
push dword [ebp - 4]
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
cmp dword [ebp - 4], esi
je 0x467d74
push dword [ebp - 4]
call edi
pop edi
pop ebx
pop esi
leave
ret

Function at 0x467d79
Capabilities:
Delete service
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call fcn.0046802b
test al, al
je 0x467e1c
push ebx
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x467e1b
push edi
push 0xf01ff
push str.Serv_U
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
cmp edi, ebx
je 0x467e11
push esi
call fcn.00467eca
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
push eax
push edi
call esi
test eax, eax
je 0x467e09
cmp dword [ebp - 0x1c], 1
jne 0x467de1
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
jmp 0x467e09
cmp dword [ebp - 0x1c], 3
jne 0x467e09
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp dword [ebp - 0x1c], 3
jne 0x467e09
lea eax, [ebp - 0x20]
push eax
push edi
call esi
test eax, eax
je 0x467e09
cmp ebx, 0xa
jle 0x467de7
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
leave
ret
Function at 0x467e1e
Capabilities:
Start service

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x9c
push ebx
call fcn.00467fbd
xor ebx, ebx
cmp eax, 5
jne 0x467e48
lea eax, [ebp - 0x24]
push str.Global_
push eax
call sub.MSVCR71.dll_strcpy
pop ecx
pop ecx
jmp 0x467e4b
mov byte [ebp - 0x24], bl
lea eax, [ebp - 0x24]
push str.UniqueServUEvent_93570126297340819583
push eax
call sub.MSVCR71.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x24]
push eax
push ebx
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
cmp eax, ebx
je 0x467e78
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x467ec4
call fcn.004680b6
test al, al
je 0x467ec4
push esi
mov esi, 0x20000000
push esi
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp + 0x74], eax
je 0x467ec3
push edi
push esi
push str.Serv_U
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, ebx
je 0x467ebd
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push edi
call esi
push dword [ebp + 0x74]
call esi
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret

Function at 0x467eca
Capabilities:
Stop service

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xbc
call fcn.00467fbd
cmp eax, 5
jne 0x467ef1
lea eax, [ebp - 0x44]
push str.Global_
push eax
call sub.MSVCR71.dll_strcpy
pop ecx
pop ecx
jmp 0x467ef5
mov byte [ebp - 0x44], 0
push ebx
push esi
push edi
lea eax, [ebp - 0x44]
push str.UniqueServUEvent_93570126297340819583
push eax
call sub.MSVCR71.dll_strcat
mov edi, dword [sym.imp.KERNEL32.dll_OpenEventA]
pop ecx
pop ecx
lea eax, [ebp - 0x44]
push eax
xor esi, esi
push esi
mov ebx, 0x1f0003
push ebx
call edi
cmp eax, esi
mov dword [ebp + 0x70], eax
je 0x467fb5
call fcn.004680b6
test al, al
je 0x467f79
push 2
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x467fb5
push 0x20
push str.Serv_U
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
mov dword [ebp + 0x74], eax
je 0x467f63
lea ecx, [ebp + 0x54]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
cmp dword [ebp + 0x74], 0
je 0x467f82
push dword [ebp + 0x74]
call esi
jmp 0x467f82
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [ebp + 0x70]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
and dword [ebp + 0x74], 0
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x44]
push eax
push 0
push ebx
call edi
test eax, eax
je 0x467fb5
push eax
call esi
inc dword [ebp + 0x74]
cmp dword [ebp + 0x74], 0xc
jl 0x467f91
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret
Function at 0x467fbd
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
mov eax, dword [0x4bbc30]
test eax, eax
jne 0x468026
push esi
push 2
pop esi
lea eax, [ebp - 0x1c]
push eax
mov dword [0x4bbc30], esi
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x468020
cmp dword [ebp - 0xc], esi
jne 0x46801a
push 3
pop eax
cmp dword [ebp - 0x18], eax
je 0x468005
push 4
pop eax
cmp dword [ebp - 0x18], eax
jne 0x46800c
mov dword [0x4bbc30], eax
jmp 0x468020
cmp dword [ebp - 0x18], 5
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
jmp 0x468005
mov dword [0x4bbc30], esi
mov eax, dword [0x4bbc30]
pop esi
add ebp, 0x78
leave
ret

Function at 0x468045
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
xor ebx, ebx
call fcn.00467fbd
cmp eax, 2
je 0x46805f
xor al, al
jmp 0x4680b3
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunServices
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4680b1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.Serv_U
push dword [ebp - 4]
mov dword [ebp - 8], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4680a8
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret

Function at 0x468190
Capabilities:
Terminate thread

Disassembly:
push ebx
xor ebx, ebx
cmp dword [0x4bbb84], ebx
push esi
je 0x4681bb
mov ecx, dword [esp + 0xc]
push ebx
push dword [esp + 0x14]
xor eax, eax
inc eax
call fcn.00468100
cmp dword [esp + 0x14], 0x64
pop ecx
pop ecx
jne 0x4681bb
call fcn.00467eca
mov eax, dword [0x4bbb74]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4681cd
push eax
call esi
mov eax, dword [0x4bbb78]
cmp eax, ebx
je 0x4681de
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x4bbb70]
cmp eax, ebx
je 0x4681ea
push eax
call esi
pop esi
mov dword [0x4bbb74], ebx
mov dword [0x4bbb78], ebx
mov dword [0x4bbb84], ebx
mov dword [0x4bbb70], ebx
mov byte [0x4bbb7c], bl
mov byte [0x4bbb7d], bl
pop ebx
ret
Function at 0x468974
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [0x4bbb68], eax
mov eax, dword [ebp + 0x10]
push 0x32
mov edi, 0x4bb0d8
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call fcn.0046883d
mov dword [0x4bb0d4], eax
lea eax, [ebp + 8]
push eax
push ebx
push ebx
push 0x4686dd
push 0x1000
push ebx
call dword [sym.imp.MSVCR71.dll__beginthreadex]
add esp, 0x20
cmp eax, ebx
jbe 0x4689c4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4bb0d4]
xor esi, esi
inc esi
cmp eax, esi
jle 0x468a13
mov eax, dword [esi*4 + 0x4bb0d8]
mov cl, byte [eax]
cmp cl, 0x2f
je 0x4689e3
cmp cl, 0x2d
jne 0x468a0a
movsx eax, byte [eax + 1]
push eax
call dword [sym.imp.MSVCR71.dll_tolower]
sub eax, 0x64
pop ecx
je 0x468a80
sub eax, 3
je 0x468a6b
dec eax
dec eax
je 0x468a64
dec eax
dec eax
je 0x468a48
sub eax, 8
je 0x468a41
inc esi
cmp esi, dword [0x4bb0d4]
jl 0x4689d0
call fcn.004680b6
cmp al, bl
mov byte [0x4bbb6c], al
je 0x468a87
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], str.Serv_U
mov dword [ebp - 0x10], fcn.0046833f
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
jmp 0x468a95
call fcn.00467eca
jmp 0x468a95
lea eax, [esi + 1]
cmp eax, dword [0x4bb0d4]
jge 0x468a95
push dword [esi*4 + 0x4bb0dc]
call fcn.004688f0
mov dword [ebp - 4], eax
jmp 0x468a94
call fcn.00467c78
jmp 0x468a95
call fcn.004680b6
test al, al
je 0x468a87
call fcn.00467c78
call fcn.00467e1e
jmp 0x468a95
call fcn.00467d79
jmp 0x468a95
push edi
push dword [0x4bb0d4]
call fcn.0046833f
pop ecx
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4692d6
Capabilities:
Create thread

Disassembly:
mov eax, 0x49c634
call fcn.00497cb0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004845ea
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [edi + 0x24]
mov dword [edi], 0x4a7b44
call fcn.00483344
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x50], ebx
mov dword [edi + 0x54], ebx
lea esi, [edi + 0x58]
mov byte [ebp - 4], 2
call fcn.0047cd50
lea eax, [edi + 0x64]
push eax
mov byte [ebp - 4], 3
call fcn.00402290
lea eax, [edi + 0x10c]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [edi + 0x11c]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
push fcn.0040fad4
push 0x469484
push 0x400
push 0x28
lea eax, [edi + 0x12c]
push eax
mov byte [ebp - 4], 6
call fcn.0049784e
lea eax, [edi + 0xa134]
mov byte [ebp - 4], 7
call fcn.004265ed
lea ecx, [edi + 0xa14c]
call fcn.00483344
lea esi, [edi + 0xa174]
mov byte [ebp - 4], 8
call fcn.0047c87e
mov byte [ebp - 4], 9
push dword [ebp + 0xc]
lea ecx, [edi + 0x24]
mov dword [edi + 0xa180], ebx
mov eax, dword [ecx]
call dword [eax + 8]
push ebx
push 0x7d0
mov ecx, edi
call fcn.0048450b
mov eax, dword [ebp + 0x10]
push 0x48
mov dword [0x4bbb90], edi
mov dword [edi + 0x20], eax
mov dword [edi + 0xa130], ebx
mov dword [edi + 0xa12c], ebx
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp + 0xc], eax
cmp eax, ebx
mov byte [ebp - 4], 0xa
je 0x4693e0
push edi
push eax
call fcn.004653c0
jmp 0x4693e2
xor eax, eax
push ebx
mov dword [edi + 0xa170], eax
call dword [sym.imp.MSVCR71.dll_time]
push eax
call dword [sym.imp.MSVCR71.dll_srand]
pop ecx
pop ecx
push 0x4bb1a0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, ebx
mov dword [0x4bbb94], eax
je 0x469450
lea eax, [ebp + 8]
push eax
push ebx
push ebx
push 0x47b5d7
push 0x1000
push ebx
call dword [sym.imp.MSVCR71.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
ja 0x469449
push dword [0x4bbb94]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4bbb94], ebx
jmp 0x469450
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x46dcf7
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
push esi
push dword [ebx + 0xc0]
mov esi, dword [sym.imp.MSVCR71.dll_sprintf]
push str.Domain
lea eax, [ebp - 0x3c]
push str._s_d
push eax
mov dword [ebp - 4], 1
call esi
mov eax, dword [ebx]
add esp, 0x10
cmp eax, 1
je 0x46dd37
cmp eax, 4
jne 0x46dea6
push dword [ebp - 4]
lea eax, [ebp - 0x20]
push str.Group
push str._s_d
push eax
call esi
add esp, 0x10
cmp dword [edi + 0x40], 0x10
jb 0x46dd58
mov eax, dword [edi + 0x2c]
jmp 0x46dd5b
lea eax, [edi + 0x2c]
push eax
push 0x12c
lea eax, [ebp - 0x168]
push eax
push 0x4a4630
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x168], 0
je 0x46ddeb
push 0
push 0
lea eax, [ebp - 0x168]
push 0x7c
push eax
call fcn.00483d45
add esp, 0x10
test eax, eax
je 0x46dda0
mov byte [eax], 0
push dword [ebx + 0xc0]
lea eax, [ebp - 0x168]
push eax
push str.GROUP
lea eax, [ebp - 0x294]
push str._s_s_d
push eax
call esi
add esp, 0x14
cmp dword [edi + 0x40], 0x10
jb 0x46ddce
mov eax, dword [edi + 0x2c]
jmp 0x46ddd1
lea eax, [edi + 0x2c]
push eax
push 0
push 0
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
inc dword [ebp - 4]
jmp 0x46dd37
mov dword [ebp - 4], 1
push dword [ebp - 4]
lea eax, [ebp - 0x20]
push str.User
push str._s_d
push eax
call esi
add esp, 0x10
cmp dword [edi + 0x40], 0x10
jb 0x46de13
mov eax, dword [edi + 0x2c]
jmp 0x46de16
lea eax, [edi + 0x2c]
push eax
push 0x12c
lea eax, [ebp - 0x168]
push eax
push 0x4a4630
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x168], 0
je 0x46dea6
push 0
push 0
lea eax, [ebp - 0x168]
push 0x7c
push eax
call fcn.00483d45
add esp, 0x10
test eax, eax
je 0x46de5b
mov byte [eax], 0
push dword [ebx + 0xc0]
lea eax, [ebp - 0x168]
push eax
push 0x4a7d00
lea eax, [ebp - 0x294]
push str._s_s_d
push eax
call esi
add esp, 0x14
cmp dword [edi + 0x40], 0x10
jb 0x46de89
mov eax, dword [edi + 0x2c]
jmp 0x46de8c
lea eax, [edi + 0x2c]
push eax
push 0
push 0
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
inc dword [ebp - 4]
jmp 0x46ddf2
cmp dword [edi + 0x40], 0x10
jb 0x46deb1
mov eax, dword [edi + 0x2c]
jmp 0x46deb4
lea eax, [edi + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push eax
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
call esi
cmp dword [ebx], 3
jne 0x46ded7
mov eax, dword [edi + 0xa170]
mov edx, ebx
call fcn.004657eb
cmp dword [edi + 0x40], 0x10
mov dword [ebp - 4], 1
jb 0x46dee9
mov eax, dword [edi + 0x2c]
jmp 0x46deec
lea eax, [edi + 0x2c]
push eax
push 0
push 0
push str.DOMAINS
call esi
mov esi, dword [edi + 0x4c]
jmp 0x46df39
mov eax, dword [esi + 0xc0]
test eax, eax
je 0x46df33
cmp eax, dword [ebx + 0xc0]
je 0x46df33
mov eax, dword [esi]
cmp eax, 1
je 0x46df20
cmp eax, 3
je 0x46df20
cmp eax, 4
jne 0x46df33
mov eax, dword [ebp - 4]
mov dword [esi + 0xc4], eax
mov eax, edi
call fcn.0046dbd6
inc dword [ebp - 4]
add esi, 0xd8
cmp esi, dword [edi + 0x50]
jne 0x46defd
pop esi
leave
ret
Function at 0x4703f3
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x49a3d0
call fcn.00497cb0
sub esp, 0x18c
push ebx
push edi
push dword [ebp + 0xc]
mov edi, dword [sym.imp.MSVCR71.dll_sprintf]
push str.Domain
mov ebx, str._s_d
lea eax, [ebp - 0x50]
push ebx
push eax
mov dword [ebp - 0x10], 1
call edi
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
add esp, 0x10
push eax
push ecx
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.00402f79
push dword [ebp - 0x10]
lea eax, [ebp - 0x6c]
push str.Group
push ebx
push eax
call edi
mov eax, dword [ebp + 8]
add esp, 0x10
cmp dword [eax + 0x40], 0x10
jb 0x47045c
mov eax, dword [eax + 0x2c]
jmp 0x47045f
add eax, 0x2c
push eax
push 0x12c
lea eax, [ebp - 0x198]
push eax
push 0x4a4630
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x198], 0
je 0x4704d6
push 0
push 0
lea eax, [ebp - 0x198]
push 0x7c
push eax
call fcn.00483d45
add esp, 0x10
test eax, eax
je 0x4704a4
mov byte [eax], 0
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x34]
call fcn.00483361
and dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
call fcn.00402f39
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004835c3
inc dword [ebp - 0x10]
jmp 0x47043c
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4704e6
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x49ae4e
call fcn.00497cb0
sub esp, 0x198
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 4]
push ebx
push esi
push eax
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.00402f79
mov esi, dword [ebp + 0x10]
mov ebx, dword [esi + 8]
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.004647fa
push dword [eax + 4]
push dword [eax]
xor eax, eax
push ebx
push eax
lea ebx, [ebp - 0x1c]
mov eax, esi
call fcn.00464842
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push eax
push ecx
lea ebx, [ebp - 0x10]
mov esi, edi
call fcn.004647d5
push dword [ebp + 0x14]
mov ebx, dword [sym.imp.MSVCR71.dll_sprintf]
push str.Domain
lea eax, [ebp - 0x78]
push str._s_d
push eax
mov dword [ebp - 0x18], 1
call ebx
add esp, 0x10
push dword [ebp - 0x18]
lea eax, [ebp - 0x5c]
push str.User
push str._s_d
push eax
call ebx
mov eax, dword [ebp + 8]
add esp, 0x10
cmp dword [eax + 0x40], 0x10
jb 0x470588
mov eax, dword [eax + 0x2c]
jmp 0x47058b
add eax, 0x2c
push eax
push 0x12c
lea eax, [ebp - 0x1a4]
push eax
push 0x4a4630
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x1a4], 0
je 0x47064c
xor esi, esi
push esi
push esi
lea eax, [ebp - 0x1a4]
push 0x7c
push eax
mov byte [ebp - 0x10], 1
mov dword [ebp + 0x14], esi
call fcn.00483d45
add esp, 0x10
cmp eax, esi
je 0x470605
cmp byte [eax + 1], 0x30
mov byte [eax], 0
jne 0x4705e5
mov byte [ebp - 0x10], 0
cmp byte [eax + 2], 0x7c
jne 0x470605
add eax, 3
cmp byte [eax], 0x30
je 0x470605
push eax
call dword [sym.imp.MSVCR71.dll_atol]
cmp eax, esi
pop ecx
mov dword [ebp + 0x14], eax
jge 0x470605
mov dword [ebp + 0x14], esi
lea eax, [ebp - 0x1a4]
push eax
lea ecx, [ebp - 0x40]
call fcn.00483361
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 4], esi
call fcn.00402f39
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004835c3
push dword [ebp - 0x10]
push dword [ebp + 0x10]
call fcn.00464818
lea esi, [ebp + 0x14]
mov eax, edi
call fcn.004647a0
inc dword [ebp - 0x18]
jmp 0x470564
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x47065c
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x49a3d0
call fcn.00497cb0
sub esp, 0x348
mov eax, dword [esi + 8]
push edi
mov edi, ecx
mov ecx, dword [esi + 4]
push eax
push ecx
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00402f79
push dword [ebp + 8]
lea eax, [ebp - 0x160]
push dword [ebp + 0xc]
push str.User
push 0x4a7cdc
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x14
cmp dword [edi + 0x40], 0x10
jb 0x4706ad
mov edi, dword [edi + 0x2c]
jmp 0x4706b0
add edi, 0x2c
push edi
push 0x1f4
lea eax, [ebp - 0x354]
push eax
push 0x4a4630
push str.Group
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x354], 0
pop edi
je 0x470709
lea eax, [ebp - 0x354]
push eax
lea ecx, [ebp - 0x34]
call fcn.00483361
and dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.0048323b
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x34]
call fcn.004835c3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4719ef
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
cmp dword [esi + 0x40], 0x10
push edi
jb 0x471a04
mov eax, dword [esi + 0x2c]
jmp 0x471a07
lea eax, [esi + 0x2c]
push eax
push 5
lea eax, [ebp - 8]
push eax
push 0x4a4630
mov ebx, str.PASVPortRange
push ebx
mov edi, str.GLOBAL
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.MSVCR71.dll_atoi]
test eax, eax
pop ecx
je 0x471a68
cmp eax, 5
jle 0x471a68
push 5
lea eax, [ebp - 8]
push 0x4a4e30
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
cmp dword [esi + 0x40], 0x10
jb 0x471a58
mov esi, dword [esi + 0x2c]
jmp 0x471a5b
add esi, 0x2c
push esi
lea eax, [ebp - 8]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x473e7d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push esi
mov esi, dword [sym.imp.MSVCR71.dll_sprintf]
push edi
push dword [ebp + 0xc]
mov edi, str._s_d
push str.Domain
lea eax, [ebp - 0x3c]
push edi
push eax
mov dword [ebp - 4], 1
call esi
add esp, 0x10
push dword [ebp - 4]
lea eax, [ebp - 0x20]
push str.User
push edi
push eax
call esi
add esp, 0x10
cmp dword [ebx + 0x40], 0x10
jb 0x473ec9
mov eax, dword [ebx + 0x2c]
jmp 0x473ecc
lea eax, [ebx + 0x2c]
push eax
push 0x12c
lea eax, [ebp - 0x168]
push eax
push 0x4a4630
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x168], 0
je 0x473f3e
push 0
push 0
lea eax, [ebp - 0x168]
push 0x7c
push eax
call fcn.00483d45
add esp, 0x10
test eax, eax
je 0x473f11
mov byte [eax], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0x10
jb 0x473f1f
mov eax, dword [eax + 8]
jmp 0x473f22
add eax, 8
lea ecx, [ebp - 0x168]
push ecx
push eax
call dword [sym.imp.MSVCR71.dll__stricmp]
test eax, eax
pop ecx
pop ecx
je 0x473f42
inc dword [ebp - 4]
jmp 0x473eac
xor al, al
jmp 0x473f44
mov al, 1
pop edi
pop esi
leave
ret 8

Function at 0x473f4a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push esi
mov esi, dword [sym.imp.MSVCR71.dll_sprintf]
push edi
push dword [ebp + 0xc]
mov edi, str._s_d
push str.Domain
lea eax, [ebp - 0x3c]
push edi
push eax
mov dword [ebp - 4], 1
call esi
add esp, 0x10
push dword [ebp - 4]
lea eax, [ebp - 0x20]
push str.Group
push edi
push eax
call esi
add esp, 0x10
cmp dword [ebx + 0x40], 0x10
jb 0x473f96
mov eax, dword [ebx + 0x2c]
jmp 0x473f99
lea eax, [ebx + 0x2c]
push eax
push 0x12c
lea eax, [ebp - 0x168]
push eax
push 0x4a4630
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x168], 0
je 0x47400b
push 0
push 0
lea eax, [ebp - 0x168]
push 0x7c
push eax
call fcn.00483d45
add esp, 0x10
test eax, eax
je 0x473fde
mov byte [eax], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0x10
jb 0x473fec
mov eax, dword [eax + 8]
jmp 0x473fef
add eax, 8
lea ecx, [ebp - 0x168]
push ecx
push eax
call dword [sym.imp.MSVCR71.dll__stricmp]
test eax, eax
pop ecx
pop ecx
je 0x47400f
inc dword [ebp - 4]
jmp 0x473f79
xor al, al
jmp 0x474011
mov al, 1
pop edi
pop esi
leave
ret 8